1
0
forked from aniani/vim

updated for version 7.4.082

Problem:    Using "gf" in a changed buffer suggests adding "!", which is not
            possible. (Tim Chase)
Solution:   Pass a flag to check_changed() wether adding ! make sense.
This commit is contained in:
Bram Moolenaar
2013-11-09 03:31:51 +01:00
parent 815135e408
commit 45d3b1454c
7 changed files with 53 additions and 21 deletions

View File

@@ -1175,6 +1175,15 @@ extern char *(*dyn_libintl_textdomain)(const char *domainname);
#define RESIZE_HOR 2 /* resize horizontally */
#define RESIZE_BOTH 15 /* resize in both directions */
/*
* flags for check_changed()
*/
#define CCGD_AW 1 /* do autowrite if buffer was changed */
#define CCGD_MULTWIN 2 /* check also when several wins for the buf */
#define CCGD_FORCEIT 4 /* ! used */
#define CCGD_ALLBUF 8 /* may write all buffers */
#define CCGD_EXCMD 16 /* may suggest using ! */
/*
* "flags" values for option-setting functions.
* When OPT_GLOBAL and OPT_LOCAL are both missing, set both local and global