aboutsummaryrefslogtreecommitdiff
path: root/test/functional/terminal/cursor_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-02-27 03:10:55 +0100
committerJustin M. Keyes <justinkz@gmail.com>2017-03-01 14:47:49 +0100
commit937e54f86599ab448e6497955e2b4dddf6347e88 (patch)
treee3ba431fb1480d4dde8362604139a36fb0d576bb /test/functional/terminal/cursor_spec.lua
parent504693ce66e61e2976b0af2930177a07bafbe6f3 (diff)
downloadrneovim-937e54f86599ab448e6497955e2b4dddf6347e88.tar.gz
rneovim-937e54f86599ab448e6497955e2b4dddf6347e88.tar.bz2
rneovim-937e54f86599ab448e6497955e2b4dddf6347e88.zip
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.
Diffstat (limited to 'test/functional/terminal/cursor_spec.lua')
-rw-r--r--test/functional/terminal/cursor_spec.lua18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/functional/terminal/cursor_spec.lua b/test/functional/terminal/cursor_spec.lua
index 1953022a7a..d990f92c3a 100644
--- a/test/functional/terminal/cursor_spec.lua
+++ b/test/functional/terminal/cursor_spec.lua
@@ -34,11 +34,11 @@ describe('terminal cursor', function()
feed('<c-\\><c-n>')
screen:expect([[
tty ready |
- {2: } |
+ {2:^ } |
+ |
|
|
|
- ^ |
|
]])
end)
@@ -51,11 +51,11 @@ describe('terminal cursor', function()
it('is positioned correctly when unfocused', function()
screen:expect([[
{7: 1 }tty ready |
- {7: 2 }{2: } |
+ {7: 2 }{2:^ } |
{7: 3 } |
{7: 4 } |
{7: 5 } |
- {7: 6 }^ |
+ {7: 6 } |
:set number |
]])
end)
@@ -101,21 +101,21 @@ describe('terminal cursor', function()
hide_cursor()
screen:expect([[
tty ready |
+ ^ |
|
|
|
|
- ^ |
|
]])
show_cursor()
screen:expect([[
tty ready |
- {2: } |
+ {2:^ } |
+ |
|
|
|
- ^ |
|
]])
end)
@@ -153,11 +153,11 @@ describe('cursor with customized highlighting', function()
feed('<c-\\><c-n>')
screen:expect([[
tty ready |
- {2: } |
+ {2:^ } |
+ |
|
|
|
- ^ |
|
]])
end)