vim-patch:7.4.2017

Problem:  When there are many errors adding them to the quickfix list takes
          a long time.
Solution: Add BLN_NOOPT.  Don't call buf_valid() in buf_copy_options().
          Remember the last file name used.  When going through the buffer
          list start from the end of the list.  Only call buf_valid() when
          autocommands were executed.

8240433f48
This commit is contained in:
Marco Hinz
2017-01-08 16:53:08 +01:00
committed by James McCoy
parent 6d4e08d226
commit 951dd1571c
5 changed files with 81 additions and 58 deletions

View File

@@ -15,9 +15,11 @@ enum getf_values {
// Values for buflist_new() flags
enum bln_values {
BLN_CURBUF = 1, // May re-use curbuf for new buffer
BLN_LISTED = 2, // Put new buffer in buffer list
BLN_DUMMY = 4, // Allocating dummy buffer
BLN_CURBUF = 1, // May re-use curbuf for new buffer
BLN_LISTED = 2, // Put new buffer in buffer list
BLN_DUMMY = 4, // Allocating dummy buffer
// TODO(mhinz): merge patch that introduces BLN_NEW
BLN_NOOPT = 16, // Don't copy options to existing buffer
};
// Values for action argument for do_buffer()