mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
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 #1681) Define macros for the return values of getfile().
This commit is contained in:
@@ -2352,8 +2352,8 @@ buflist_getfile(
|
||||
#endif
|
||||
|
||||
++RedrawingDisabled;
|
||||
if (getfile(buf->b_fnum, NULL, NULL, (options & GETF_SETMARK),
|
||||
lnum, forceit) <= 0)
|
||||
if (GETFILE_SUCCESS(getfile(buf->b_fnum, NULL, NULL,
|
||||
(options & GETF_SETMARK), lnum, forceit)))
|
||||
{
|
||||
--RedrawingDisabled;
|
||||
|
||||
|
Reference in New Issue
Block a user