Use tilde-substitution in page number update

This commit is contained in:
Sidharth Kapur 2015-10-01 17:10:47 -05:00
parent f1f65664da
commit 0c81a47eff

View File

@ -1125,9 +1125,7 @@ statusbar_page_number_update(zathura_t* zathura)
bool basename_only = false;
girara_setting_get(zathura->ui.session, "window-title-basename", &basename_only);
char* title = g_strdup_printf("%s %s",
(basename_only == true)
? zathura_document_get_basename(zathura->document)
: zathura_document_get_path(zathura->document),
get_window_title_filename(zathura, zathura_document_get_path(zathura->document)),
page_number_text);
girara_set_window_title(zathura->ui.session, title);
g_free(title);