Commit 0c81a47e authored by Sidharth Kapur's avatar Sidharth Kapur
Browse files

Use tilde-substitution in page number update

parent f1f65664
......@@ -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)),
girara_set_window_title(zathura->ui.session, title);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment