mirror of
https://github.com/neovim/neovim.git
synced 2025-09-11 05:48:17 +00:00
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().
8ad80dea08
This commit is contained in:
@@ -1901,10 +1901,10 @@ int buflist_getfile(int n, linenr_T lnum, int options, int forceit)
|
||||
}
|
||||
}
|
||||
|
||||
++RedrawingDisabled;
|
||||
if (getfile(buf->b_fnum, NULL, NULL, (options & GETF_SETMARK),
|
||||
lnum, forceit) <= 0) {
|
||||
--RedrawingDisabled;
|
||||
RedrawingDisabled++;
|
||||
if (GETFILE_SUCCESS(getfile(buf->b_fnum, NULL, NULL,
|
||||
(options & GETF_SETMARK), lnum, forceit))) {
|
||||
RedrawingDisabled--;
|
||||
|
||||
/* cursor is at to BOL and w_cursor.lnum is checked due to getfile() */
|
||||
if (!p_sol && col != 0) {
|
||||
@@ -1915,7 +1915,7 @@ int buflist_getfile(int n, linenr_T lnum, int options, int forceit)
|
||||
}
|
||||
return OK;
|
||||
}
|
||||
--RedrawingDisabled;
|
||||
RedrawingDisabled--;
|
||||
return FAIL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user