mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 01:16:31 +00:00
shada: Refuse to write ShaDa file when ShaDa was disabled
This commit is contained in:
@@ -2895,6 +2895,10 @@ shada_write_exit:
|
||||
/// @return OK if writing was successfull, FAIL otherwise.
|
||||
int shada_write_file(const char *const file, bool nomerge)
|
||||
{
|
||||
if (shada_disabled()) {
|
||||
return FAIL;
|
||||
}
|
||||
|
||||
char *const fname = shada_filename(file);
|
||||
char *tempname = NULL;
|
||||
ShaDaWriteDef sd_writer = (ShaDaWriteDef) {
|
||||
|
Reference in New Issue
Block a user