mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 15:56:00 +01:00
Use tilde-substitution in page number update
This commit is contained in:
parent
f1f65664da
commit
0c81a47eff
1 changed files with 1 additions and 3 deletions
|
@ -1125,9 +1125,7 @@ statusbar_page_number_update(zathura_t* zathura)
|
||||||
bool basename_only = false;
|
bool basename_only = false;
|
||||||
girara_setting_get(zathura->ui.session, "window-title-basename", &basename_only);
|
girara_setting_get(zathura->ui.session, "window-title-basename", &basename_only);
|
||||||
char* title = g_strdup_printf("%s %s",
|
char* title = g_strdup_printf("%s %s",
|
||||||
(basename_only == true)
|
get_window_title_filename(zathura, zathura_document_get_path(zathura->document)),
|
||||||
? zathura_document_get_basename(zathura->document)
|
|
||||||
: zathura_document_get_path(zathura->document),
|
|
||||||
page_number_text);
|
page_number_text);
|
||||||
girara_set_window_title(zathura->ui.session, title);
|
girara_set_window_title(zathura->ui.session, title);
|
||||||
g_free(title);
|
g_free(title);
|
||||||
|
|
Loading…
Reference in a new issue