Don't overwrite existing files in :save

This commit is contained in:
Sebastian Ramacher 2012-03-05 15:04:29 +01:00
parent 7c7a067938
commit d1cd82fe68

View File

@ -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."));