mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 21:03:46 +01:00
Don't overwrite existing files in :save
This commit is contained in:
parent
7c7a067938
commit
d1cd82fe68
@ -237,7 +237,7 @@ cmd_save(girara_session_t* session, girara_list_t* argument_list)
|
||||
}
|
||||
|
||||
if (girara_list_size(argument_list) == 1) {
|
||||
if (document_save(zathura, girara_list_nth(argument_list, 0), true) == true) {
|
||||
if (document_save(zathura, girara_list_nth(argument_list, 0), false) == true) {
|
||||
girara_notify(session, GIRARA_INFO, _("Document saved."));
|
||||
} else {
|
||||
girara_notify(session, GIRARA_INFO, _("Failed to save document."));
|
||||
|
Loading…
Reference in New Issue
Block a user