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().
diff --git a/src/buffer.c b/src/buffer.c
index a57d2f6..2f574e0 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -2352,8 +2352,8 @@
#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;