aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/state.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2024-03-13 07:46:11 +0100
committerGitHub <noreply@github.com>2024-03-13 07:46:11 +0100
commit2a8cef6bd450febd88d754e0c1909137b7451757 (patch)
tree73da66dcd1ba85b22d88b547b58f920039b167ad /src/nvim/state.c
parentd5488633f68fcfd58b4bcad654ab103b4746204b (diff)
parent08fc1ebbaa49e3110b65bddeed28d2e61a96f5d9 (diff)
downloadrneovim-2a8cef6bd450febd88d754e0c1909137b7451757.tar.gz
rneovim-2a8cef6bd450febd88d754e0c1909137b7451757.tar.bz2
rneovim-2a8cef6bd450febd88d754e0c1909137b7451757.zip
Merge pull request #27815 from bfredl/setlines_scroll
fix(api/buffer): fix handling of viewport of non-current buffer
Diffstat (limited to 'src/nvim/state.c')
-rw-r--r--src/nvim/state.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/state.c b/src/nvim/state.c
index 0df060ecf4..baa1e75775 100644
--- a/src/nvim/state.c
+++ b/src/nvim/state.c
@@ -135,9 +135,9 @@ void state_handle_k_event(void)
}
/// Return true if in the current mode we need to use virtual.
-bool virtual_active(void)
+bool virtual_active(win_T *wp)
{
- unsigned cur_ve_flags = get_ve_flags();
+ unsigned cur_ve_flags = get_ve_flags(wp);
// While an operator is being executed we return "virtual_op", because
// VIsual_active has already been reset, thus we can't check for "block"