vim-patch:7.4.659 + test

Problem:    When 'ruler' is set the preferred column is reset. (Issue 339)
Solution:   Don't set curswant when redrawing the status lines.

https://code.google.com/p/vim/source/detail?r=v7-4-659

Helped-by: David Bürgin <676c7473@gmail.com>
Based on #2347 by @pvinis
This commit is contained in:
Michael Reed
2015-04-27 22:08:14 -04:00
parent 28e60462c8
commit 98b3dc0571
3 changed files with 30 additions and 6 deletions

View File

@@ -159,8 +159,6 @@ describe('Screen', function()
|
]])
end)
end)
end)
@@ -245,6 +243,32 @@ describe('Screen', function()
end)
end)
describe('normal mode', function()
-- https://code.google.com/p/vim/issues/detail?id=339
it("setting 'ruler' doesn't reset the preferred column", function()
execute('set virtualedit=')
feed('i0123456<cr>789<esc>kllj')
execute('set ruler')
feed('k')
screen:expect([[
0123^456 |
789 |
~ |
~ |
~ |
~ |
~ |
~ |
~ |
~ |
~ |
~ |
~ |
:set ruler 1,5 All |
]])
end)
end)
describe('command mode', function()
it('typing commands', function()
feed(':ls')