aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer.h
diff options
context:
space:
mode:
authorMarco Hinz <mh.codebro@gmail.com>2017-01-08 16:53:08 +0100
committerJames McCoy <jamessan@jamessan.com>2017-02-04 17:15:11 -0500
commit951dd1571cbb57b41274c0e515e2b3c789305bad (patch)
tree43b8e5c21de645ee094bc71d3cbe8644368d6cd2 /src/nvim/buffer.h
parent6d4e08d226971220b02fd74032f931779a0acd38 (diff)
downloadrneovim-951dd1571cbb57b41274c0e515e2b3c789305bad.tar.gz
rneovim-951dd1571cbb57b41274c0e515e2b3c789305bad.tar.bz2
rneovim-951dd1571cbb57b41274c0e515e2b3c789305bad.zip
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. https://github.com/vim/vim/commit/8240433f48f7383c281ba2453cc55f10b8ec47d9
Diffstat (limited to 'src/nvim/buffer.h')
-rw-r--r--src/nvim/buffer.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/nvim/buffer.h b/src/nvim/buffer.h
index 36cbec7e60..1fe8692963 100644
--- a/src/nvim/buffer.h
+++ b/src/nvim/buffer.h
@@ -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()