diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-06-05 16:01:59 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-06-05 16:01:59 +0200 |
commit | 8ad80dea089ffeb1a845199c013e9bb4be1cd22e (patch) | |
tree | 8acbc6f87058076a9965d14ac10e8d37e57f0aa0 /src/buffer.c | |
parent | b463e8d999ec812d656876f313efbeaeed663b45 (diff) | |
download | vim-git-8ad80dea089ffeb1a845199c013e9bb4be1cd22e.tar.gz |
patch 8.0.0621: :stag does not respect 'switchbuf'v8.0.0621
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().
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.c b/src/buffer.c index a57d2f643..2f574e03d 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -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; |