diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-06-27 18:28:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-27 18:28:32 +0200 |
commit | 363a232cb4e35641036924c9edcc48d476234b59 (patch) | |
tree | a3a2d93276ec480f10d14d1a7cd1057c4cbda93b /src/nvim/quickfix.c | |
parent | da6874a7b26976c43115a66180c47d8230dea435 (diff) | |
parent | 33eb5833b2baefce3797f4544bc1567d0c23c9e7 (diff) | |
download | rneovim-363a232cb4e35641036924c9edcc48d476234b59.tar.gz rneovim-363a232cb4e35641036924c9edcc48d476234b59.tar.bz2 rneovim-363a232cb4e35641036924c9edcc48d476234b59.zip |
Merge #8645 from janlazo/vim-8.0.0677
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r-- | src/nvim/quickfix.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index aeb27a5cac..47760e1e70 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -3008,6 +3008,7 @@ static void qf_fill_buffer(qf_info_T *qi, buf_T *buf, qfline_T *old_last) // Set the 'filetype' to "qf" each time after filling the buffer. This // resembles reading a file into a buffer, it's more logical when using // autocommands. + curbuf_lock++; set_option_value("ft", 0L, "qf", OPT_LOCAL); curbuf->b_p_ma = false; @@ -3017,6 +3018,7 @@ static void qf_fill_buffer(qf_info_T *qi, buf_T *buf, qfline_T *old_last) apply_autocmds(EVENT_BUFWINENTER, (char_u *)"quickfix", NULL, false, curbuf); keep_filetype = false; + curbuf_lock--; // make sure it will be redrawn redraw_curbuf_later(NOT_VALID); |