terminal: Keep cursor position.

Let the terminal dictate the normal-mode cursor position. This will be
disorienting sometimes, but it is closer to what users expect vs always
going to the last line.
This commit is contained in:
Justin M. Keyes
2017-02-27 03:10:55 +01:00
parent 504693ce66
commit 937e54f865
9 changed files with 52 additions and 109 deletions

View File

@@ -50,11 +50,11 @@ describe('terminal buffer', function()
feed('<c-\\><c-n>')
screen:expect([[
tty ready |
{2: } |
{2:^ } |
|
|
|
|
^ |
|
]])
end)
@@ -74,11 +74,11 @@ describe('terminal buffer', function()
feed('<c-\\><c-n>dd')
screen:expect([[
tty ready |
{2: } |
{2:^ } |
|
|
|
|
^ |
{8:E21: Cannot make changes, 'modifiable' is off} |
]])
end)