diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-07-29 02:11:31 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-08-12 17:39:07 +0200 |
commit | 49b671f8f1c93dcd317aec464352206cc705748a (patch) | |
tree | ed4da53de33a0da49b1093fe775abd08b70e141c /src/nvim/testdir/test_breakindent.vim | |
parent | c747b53f84bfd64ec9f36d4b5912a980a6da8b3e (diff) | |
download | rneovim-49b671f8f1c93dcd317aec464352206cc705748a.tar.gz rneovim-49b671f8f1c93dcd317aec464352206cc705748a.tar.bz2 rneovim-49b671f8f1c93dcd317aec464352206cc705748a.zip |
vim-patch:8.0.0290 vim-patch:8.0.0394
vim-patch:8.0.0290: cursor positioning wrong if wide character wraps
Problem: If a wide character doesn't fit at the end of the screen line, and
the line doesn't fit on the screen, then the cursor position may
be wrong. (anliting)
Solution: Don't skip over wide character. (Christian Brabandt, closes vim/1408)
vim-patch:8.0.0394
Problem: Tabs are not aligned when scrolling horizontally and a Tab doesn't
fit. (Axel Bender)
Solution: Handle a Tab as a not fitting character. (Christian Brabandt)
Also fix that ":redraw" does not scroll horizontally to show the
cursor. And fix the test that depended on the old behavior.
https://github.com/vim/vim/commit/abc39ab642791ae3d22a524516eeedb673a95d9d
Diffstat (limited to 'src/nvim/testdir/test_breakindent.vim')
-rw-r--r-- | src/nvim/testdir/test_breakindent.vim | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nvim/testdir/test_breakindent.vim b/src/nvim/testdir/test_breakindent.vim index 8721b35cdf..7deffbe452 100644 --- a/src/nvim/testdir/test_breakindent.vim +++ b/src/nvim/testdir/test_breakindent.vim @@ -274,7 +274,6 @@ endfunction function Test_breakindent16() " Check that overlong lines are indented correctly. - " TODO: currently it does not fail even when the bug is not fixed. let s:input="" call s:test_windows('setl breakindent briopt=min:0 ts=4') call setline(1, "\t".repeat("1234567890", 10)) @@ -283,16 +282,16 @@ function Test_breakindent16() redraw! let lines=s:screen_lines(1,10) let expect=[ -\ " 123456", \ " 789012", \ " 345678", +\ " 901234", \ ] call s:compare_lines(expect, lines) let lines=s:screen_lines(4,10) let expect=[ -\ " 901234", \ " 567890", \ " 123456", +\ " 7890 ", \ ] call s:compare_lines(expect, lines) call s:close_windows() |