From 69e448d1d871c648bd1fc0c6067803bdc06c3e5b Mon Sep 17 00:00:00 2001 From: watiko Date: Fri, 5 Feb 2016 12:07:46 +0900 Subject: vim-patch:7.4.700 Problem: Fold can't be opened after ":move". (Ein Brown) Solution: Delete the folding information and update it afterwards. (Christian Brabandt) https://github.com/vim/vim/commit/d5f6933d5c57ea6f79bbdeab6c426cf66a393f33 --- src/nvim/testdir/test45.in | 10 ++++++++++ src/nvim/testdir/test45.ok | 5 +++++ 2 files changed, 15 insertions(+) (limited to 'src/nvim/testdir') diff --git a/src/nvim/testdir/test45.in b/src/nvim/testdir/test45.in index e5af5073d9..b1e8266ab6 100644 --- a/src/nvim/testdir/test45.in +++ b/src/nvim/testdir/test45.in @@ -63,6 +63,16 @@ endfun :call append("$", foldlevel(".")) :/^last/+1,$w! test.out :delfun Flvl +:new +iTest fdm=indent and :move bug END +line2 + Test fdm=indent START + line3 + line4 +:set fdm=indent +:1m1 +2jzc:m0 +:%w >> test.out :qa! ENDTEST diff --git a/src/nvim/testdir/test45.ok b/src/nvim/testdir/test45.ok index f04996e337..0f25e6218a 100644 --- a/src/nvim/testdir/test45.ok +++ b/src/nvim/testdir/test45.ok @@ -16,3 +16,8 @@ expr 2 1 2 0 + Test fdm=indent START + line3 + line4 +Test fdm=indent and :move bug END +line2 -- cgit