Mercurial > vim
comparison src/ex_cmds.c @ 17186:278583ff5e44 v8.1.1592
patch 8.1.1592: may start file dialog while exiting
commit https://github.com/vim/vim/commit/5c381eb9e72990e4153045f4911c59b9b2194edd
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jun 25 06:50:31 2019 +0200
patch 8.1.1592: may start file dialog while exiting
Problem: May start file dialog while exiting.
Solution: Ignore the "browse" modifier when exiting. (Ozaki Kiichi,
closes #4582
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 25 Jun 2019 07:00:04 +0200 |
parents | 40c4cb095d53 |
children | 94cc7da54754 |
comparison
equal
deleted
inserted
replaced
17185:bb5e800dda4a | 17186:278583ff5e44 |
---|---|
3184 if (not_writing()) /* check 'write' option */ | 3184 if (not_writing()) /* check 'write' option */ |
3185 return FAIL; | 3185 return FAIL; |
3186 | 3186 |
3187 ffname = eap->arg; | 3187 ffname = eap->arg; |
3188 #ifdef FEAT_BROWSE | 3188 #ifdef FEAT_BROWSE |
3189 if (cmdmod.browse) | 3189 if (cmdmod.browse && !exiting) |
3190 { | 3190 { |
3191 browse_file = do_browse(BROWSE_SAVE, (char_u *)_("Save As"), ffname, | 3191 browse_file = do_browse(BROWSE_SAVE, (char_u *)_("Save As"), ffname, |
3192 NULL, NULL, NULL, curbuf); | 3192 NULL, NULL, NULL, curbuf); |
3193 if (browse_file == NULL) | 3193 if (browse_file == NULL) |
3194 goto theend; | 3194 goto theend; |