summaryrefslogtreecommitdiff
path: root/src/ex_cmds.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-03-15 20:45:53 +0100
committerBram Moolenaar <Bram@vim.org>2017-03-15 20:45:53 +0100
commitfe70c5198336dba7e8b0fa915e6c4350e7f80f6f (patch)
treef9f8b6ab3e0ba2f1638cc15c66ef97308d8e3ef5 /src/ex_cmds.c
parent42f45b850df93b806ef44f3025aecedfffb9ae01 (diff)
downloadvim-git-fe70c5198336dba7e8b0fa915e6c4350e7f80f6f.tar.gz
patch 8.0.0459: old fix for :move and folding no longer neededv8.0.0459
Problem: Old fix for :move messing up folding no longer needed, now that we have a proper solution. Solution: Revert patch 7.4.700. (Christian Brabandt)
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r--src/ex_cmds.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 897730274..df35f52da 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -799,16 +799,8 @@ do_move(linenr_T line1, linenr_T line2, linenr_T dest)
linenr_T num_lines; /* Num lines moved */
linenr_T last_line; /* Last line in file after adding new text */
#ifdef FEAT_FOLDING
- int isFolded;
win_T *win;
tabpage_T *tp;
-
- /* Moving lines seems to corrupt the folds, delete folding info now
- * and recreate it when finished. Don't do this for manual folding, it
- * would delete all folds. */
- isFolded = hasAnyFolding(curwin) && !foldmethodIsManual(curwin);
- if (isFolded)
- deleteFoldRecurse(&curwin->w_folds);
#endif
if (dest >= line1 && dest < line2)
@@ -918,12 +910,6 @@ do_move(linenr_T line1, linenr_T line2, linenr_T dest)
else
changed_lines(dest + 1, 0, line1 + num_lines, 0L);
-#ifdef FEAT_FOLDING
- /* recreate folds */
- if (isFolded)
- foldUpdateAll(curwin);
-#endif
-
return OK;
}