comparison src/buffer.c @ 11476:c45fb081391c v8.0.0621

patch 8.0.0621: :stag does not respect 'switchbuf' commit https://github.com/vim/vim/commit/8ad80dea089ffeb1a845199c013e9bb4be1cd22e Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jun 5 16:01:59 2017 +0200 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().
author Christian Brabandt <cb@256bit.org>
date Mon, 05 Jun 2017 16:15:03 +0200
parents 698ee9d4fe9f
children e349dc7889f5
comparison
equal deleted inserted replaced
11475:53a8f79670ee 11476:c45fb081391c
2350 } 2350 }
2351 } 2351 }
2352 #endif 2352 #endif
2353 2353
2354 ++RedrawingDisabled; 2354 ++RedrawingDisabled;
2355 if (getfile(buf->b_fnum, NULL, NULL, (options & GETF_SETMARK), 2355 if (GETFILE_SUCCESS(getfile(buf->b_fnum, NULL, NULL,
2356 lnum, forceit) <= 0) 2356 (options & GETF_SETMARK), lnum, forceit)))
2357 { 2357 {
2358 --RedrawingDisabled; 2358 --RedrawingDisabled;
2359 2359
2360 /* cursor is at to BOL and w_cursor.lnum is checked due to getfile() */ 2360 /* cursor is at to BOL and w_cursor.lnum is checked due to getfile() */
2361 if (!p_sol && col != 0) 2361 if (!p_sol && col != 0)