mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-30 22:44:55 +01:00
Simplify
This commit is contained in:
parent
c6cbb0f87c
commit
2c648556af
1 changed files with 2 additions and 2 deletions
|
@ -201,8 +201,8 @@ cmd_info(girara_session_t* session, girara_list_t* UNUSED(argument_list))
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
if (strlen(string->str) > 0) {
|
if (string->len > 0) {
|
||||||
g_string_erase(string, strlen(string->str) - 1, 1);
|
g_string_erase(string, string->len - 1, 1);
|
||||||
girara_notify(session, GIRARA_INFO, "%s", string->str);
|
girara_notify(session, GIRARA_INFO, "%s", string->str);
|
||||||
} else {
|
} else {
|
||||||
girara_notify(session, GIRARA_INFO, _("No information available."));
|
girara_notify(session, GIRARA_INFO, _("No information available."));
|
||||||
|
|
Loading…
Reference in a new issue