Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
patch 8.0.1682: auto indenting breaks inserting a block
Problem: Auto indenting breaks inserting a block. Solution: Do not check for cursor movement if indent was changed. (Christian Brabandt, closes #2778)
- Loading branch information
Showing
5 changed files
with
31 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
" Test for block inserting | ||
" | ||
" TODO: rewrite test39.in into this new style test | ||
|
||
func Test_blockinsert_indent() | ||
new | ||
filetype plugin indent on | ||
setlocal sw=2 et ft=vim | ||
call setline(1, ['let a=[', ' ''eins'',', ' ''zwei'',', ' ''drei'']']) | ||
call cursor(2, 3) | ||
exe "norm! \<c-v>2jI\\ \<esc>" | ||
call assert_equal(['let a=[', ' \ ''eins'',', ' \ ''zwei'',', ' \ ''drei'']'], | ||
\ getline(1,'$')) | ||
" reset to sane state | ||
filetype off | ||
bwipe! | ||
endfunc | ||
|
||
|
||
" vim: shiftwidth=2 sts=2 expandtab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters