Updating last differences

This commit is contained in:
Viktor Walter 2022-01-10 17:38:43 +01:00
parent 07cc401639
commit fab61dcce0
2 changed files with 3 additions and 4 deletions

View file

@ -1,4 +1,4 @@
[wrap-git] [wrap-git]
directory=girara directory=girara
url=https://github.com/pwmt/girara.git url=https://git.pwmt.org/pwmt/girara.git
revision=develop revision=develop

View file

@ -1424,13 +1424,12 @@ document_save(zathura_t* zathura, const char* path, bool overwrite)
} }
if ((overwrite == false) && g_file_test(file_path, G_FILE_TEST_EXISTS)) { if ((overwrite == false) && g_file_test(file_path, G_FILE_TEST_EXISTS)) {
girara_error("File already exists: %s. Use :write! to overwrite it.", girara_notify(zathura->ui.session, GIRARA_ERROR, _("File already exists: %s. Use :write! to overwrite it."), file_path);
file_path);
g_free(file_path); g_free(file_path);
return false; return false;
} }
zathura_error_t error = zathura_document_save_as(zathura->document, file_path); const zathura_error_t error = zathura_document_save_as(zathura->document, file_path);
g_free(file_path); g_free(file_path);
if (error != ZATHURA_ERROR_OK) { if (error != ZATHURA_ERROR_OK) {