aboutsummaryrefslogtreecommitdiff
path: root/test/functional/api/window_spec.lua
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2024-03-15 10:02:26 +0100
committerGitHub <noreply@github.com>2024-03-15 10:02:26 +0100
commitf1c9228bba936986233627ee514ade6f319c2716 (patch)
treefc6eb360a8331ddf85ebc14f34f8b64c206c7c07 /test/functional/api/window_spec.lua
parent8350839a8796bc37e5849d78eb919e3d100f332e (diff)
parentd41b8d47587bd4c300420fa76f517298e97af513 (diff)
downloadrneovim-f1c9228bba936986233627ee514ade6f319c2716.tar.gz
rneovim-f1c9228bba936986233627ee514ade6f319c2716.tar.bz2
rneovim-f1c9228bba936986233627ee514ade6f319c2716.zip
Merge pull request #27858 from luukvbaal/nvim_set_cursor
fix(ui): issues controlling cursor position with ext_cmdline
Diffstat (limited to 'test/functional/api/window_spec.lua')
-rw-r--r--test/functional/api/window_spec.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/functional/api/window_spec.lua b/test/functional/api/window_spec.lua
index a10c8f48ef..721148faaa 100644
--- a/test/functional/api/window_spec.lua
+++ b/test/functional/api/window_spec.lua
@@ -219,6 +219,21 @@ describe('API/win', function()
-- curwin didn't change back
neq(win, curwin())
+
+ -- shows updated position after getchar() #20793
+ feed(':call getchar()<CR>')
+ api.nvim_win_set_cursor(win, { 1, 5 })
+ screen:expect {
+ grid = [[
+ |
+ {1:~ }|*2
+ {2:[No Name] }|
+ prolo^gue |
+ |*2
+ {3:[No Name] [+] }|
+ :call getchar() |
+ ]],
+ }
end)
it('remembers what column it wants to be in', function()