aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRob Pilling <robpilling@gmail.com>2019-10-29 22:31:40 +0000
committerRob Pilling <robpilling@gmail.com>2019-10-31 19:16:52 +0000
commitd52d7823898c7fee0121c4d6da730a0530bf8c50 (patch)
tree2ab1b07cda5b9a91123e5352786985b0d9fe242e /src
parent1f6ce1f97d60f9fd1cc75dab4b604a72d390bf1e (diff)
downloadrneovim-d52d7823898c7fee0121c4d6da730a0530bf8c50.tar.gz
rneovim-d52d7823898c7fee0121c4d6da730a0530bf8c50.tar.bz2
rneovim-d52d7823898c7fee0121c4d6da730a0530bf8c50.zip
Prevent :topleft, etc modifying the inccommand preview window
Diffstat (limited to 'src')
-rw-r--r--src/nvim/ex_cmds.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
index c1ef08593d..a71b249a92 100644
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -5535,6 +5535,9 @@ static buf_T *show_sub(exarg_T *eap, pos_T old_cusr,
// We keep a special-purpose buffer around, but don't assume it exists.
buf_T *preview_buf = bufnr ? buflist_findnr(bufnr) : 0;
+ // disable :leftabove/botright modifiers
+ // (especially ones that conflict with our win_split() call below)
+ cmdmod.split = 0;
cmdmod.tab = 0; // disable :tab modifier
cmdmod.noswapfile = true; // disable swap for preview buffer
// disable file info message