aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2020-04-26 02:52:39 -0400
committerGitHub <noreply@github.com>2020-04-26 02:52:39 -0400
commit3de9452abf182519fd9a015fe489a37d14aa78d9 (patch)
treebf088b92858967ae791579bbc9faf39800207302 /src/nvim/ex_cmds.c
parent68511924d02af03812ae4b56aea6d94009f8096e (diff)
parent4d8b66e4978f6a7b59e35ac27ec0d96c0ebc011a (diff)
downloadrneovim-3de9452abf182519fd9a015fe489a37d14aa78d9.tar.gz
rneovim-3de9452abf182519fd9a015fe489a37d14aa78d9.tar.bz2
rneovim-3de9452abf182519fd9a015fe489a37d14aa78d9.zip
Merge #12177 'folds: decrease reliance on globals'
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r--src/nvim/ex_cmds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
index 1cd95f2ed9..d26d3387f8 100644
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -882,7 +882,7 @@ int do_move(linenr_T line1, linenr_T line2, linenr_T dest)
mark_adjust_nofold(line2 + 1, dest, -num_lines, 0L, kExtmarkNOOP);
FOR_ALL_TAB_WINDOWS(tab, win) {
if (win->w_buffer == curbuf) {
- foldMoveRange(&win->w_folds, line1, line2, dest);
+ foldMoveRange(win, &win->w_folds, line1, line2, dest);
}
}
curbuf->b_op_start.lnum = dest - num_lines + 1;
@@ -891,7 +891,7 @@ int do_move(linenr_T line1, linenr_T line2, linenr_T dest)
mark_adjust_nofold(dest + 1, line1 - 1, num_lines, 0L, kExtmarkNOOP);
FOR_ALL_TAB_WINDOWS(tab, win) {
if (win->w_buffer == curbuf) {
- foldMoveRange(&win->w_folds, dest + 1, line1 - 1, line2);
+ foldMoveRange(win, &win->w_folds, dest + 1, line1 - 1, line2);
}
}
curbuf->b_op_start.lnum = dest + 1;