mirror of
https://github.com/neovim/neovim.git
synced 2025-10-13 21:36:05 +00:00
fix(cmdline): do not move UI cursor when entering cmdline #33729
Problem: Cursor is still moved to curwin when entering cmdline (after d41b8d47
).
Solution: Remove call to `setcursor()`.
This commit is contained in:
@@ -795,7 +795,6 @@ static uint8_t *command_line_enter(int firstc, int count, int indent, bool clear
|
|||||||
}
|
}
|
||||||
|
|
||||||
setmouse();
|
setmouse();
|
||||||
setcursor();
|
|
||||||
|
|
||||||
s->cmdline_type = firstc > 0 ? firstc : '-';
|
s->cmdline_type = firstc > 0 ? firstc : '-';
|
||||||
Error err = ERROR_INIT;
|
Error err = ERROR_INIT;
|
||||||
|
@@ -125,8 +125,8 @@ describe('ui/ext_messages', function()
|
|||||||
feed(':%s/i/X/gc<cr>')
|
feed(':%s/i/X/gc<cr>')
|
||||||
screen:expect({
|
screen:expect({
|
||||||
grid = [[
|
grid = [[
|
||||||
l{2:^i}ne 1 |
|
l{2:i}ne 1 |
|
||||||
l{10:i}ne 2 |
|
l{10:i}ne ^2 |
|
||||||
{1:~ }|*3
|
{1:~ }|*3
|
||||||
]],
|
]],
|
||||||
cmdline = {
|
cmdline = {
|
||||||
@@ -1351,7 +1351,7 @@ stack traceback:
|
|||||||
feed('z=')
|
feed('z=')
|
||||||
screen:expect({
|
screen:expect({
|
||||||
grid = [[
|
grid = [[
|
||||||
{100:^helllo} |
|
{100:helll^o} |
|
||||||
{1:~ }|*4
|
{1:~ }|*4
|
||||||
]],
|
]],
|
||||||
cmdline = {
|
cmdline = {
|
||||||
@@ -1374,7 +1374,7 @@ stack traceback:
|
|||||||
feed('1')
|
feed('1')
|
||||||
screen:expect({
|
screen:expect({
|
||||||
grid = [[
|
grid = [[
|
||||||
{100:^helllo} |
|
{100:helll^o} |
|
||||||
{1:~ }|*4
|
{1:~ }|*4
|
||||||
]],
|
]],
|
||||||
cmdline = {
|
cmdline = {
|
||||||
|
Reference in New Issue
Block a user