diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-06-21 09:59:14 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-06-21 12:50:30 -0400 |
commit | bf61885cb45fcced4f5886f336460be4af8a8ba8 (patch) | |
tree | 2852806953323960e6bc74ce50203af6b9a8dff0 /src/nvim/buffer.h | |
parent | 7ae7da8fb9ab2e23ffc19000798ae27a2dee4e87 (diff) | |
download | rneovim-bf61885cb45fcced4f5886f336460be4af8a8ba8.tar.gz rneovim-bf61885cb45fcced4f5886f336460be4af8a8ba8.tar.bz2 rneovim-bf61885cb45fcced4f5886f336460be4af8a8ba8.zip |
vim-patch:8.0.0621: :stag does not respect 'switchbuf'
Problem: The ":stag" command does not respect 'switchbuf'.
Solution: Check 'switchbuf' for tag commands that may open a new window.
(Ingo Karkat, closes vim/vim#1681) Define macros for the return values
of getfile().
https://github.com/vim/vim/commit/8ad80dea089ffeb1a845199c013e9bb4be1cd22e
Diffstat (limited to 'src/nvim/buffer.h')
-rw-r--r-- | src/nvim/buffer.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nvim/buffer.h b/src/nvim/buffer.h index faeeed121c..d12862a0c6 100644 --- a/src/nvim/buffer.h +++ b/src/nvim/buffer.h @@ -17,6 +17,15 @@ enum getf_values { GETF_SWITCH = 0x04, // respect 'switchbuf' settings when jumping }; +// Return values of getfile() +enum getf_retvalues { + GETFILE_ERROR = 1, // normal error + GETFILE_NOT_WRITTEN = 2, // "not written" error + GETFILE_SAME_FILE = 0, // success, same file + GETFILE_OPEN_OTHER = -1, // success, opened another file + GETFILE_UNUSED = 8 +}; + // Values for buflist_new() flags enum bln_values { BLN_CURBUF = 1, // May re-use curbuf for new buffer |