fix(api): do not update grid position in nvim_win_set_cursor (#28235)

Revert commit c971f538ab.
Forcing grid cursor position will need a new API like originally proposed in #27858.
This commit is contained in:
luukvbaal
2024-04-21 02:15:18 +02:00
committed by GitHub
parent 9e1bbb9813
commit 344906a08f
3 changed files with 3 additions and 17 deletions

View File

@@ -257,21 +257,6 @@ 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()