mirror of
https://github.com/neovim/neovim.git
synced 2024-09-17 20:58:20 -04:00
Merge e45ee5adf8
into a0d8c2b86e
This commit is contained in:
commit
cff40c9095
@ -35,6 +35,10 @@ void set_title(String title)
|
||||
FUNC_API_SINCE(3);
|
||||
void set_icon(String icon)
|
||||
FUNC_API_SINCE(3);
|
||||
void set_cursor(void)
|
||||
FUNC_API_SINCE(3);
|
||||
void reset_cursor(void)
|
||||
FUNC_API_SINCE(3);
|
||||
void screenshot(String path)
|
||||
FUNC_API_SINCE(7);
|
||||
void option_set(String name, Object value)
|
||||
|
@ -1739,6 +1739,7 @@ void enter_buffer(buf_T *buf)
|
||||
curwin->w_topfill = 0;
|
||||
apply_autocmds(EVENT_BUFENTER, NULL, NULL, false, curbuf);
|
||||
apply_autocmds(EVENT_BUFWINENTER, NULL, NULL, false, curbuf);
|
||||
ui_call_set_cursor();
|
||||
}
|
||||
|
||||
// If autocommands did not change the cursor position, restore cursor lnum
|
||||
|
@ -839,6 +839,7 @@ void setcursor_mayforce(win_T *wp, bool force)
|
||||
|
||||
grid_adjust(&grid, &row, &col);
|
||||
ui_grid_cursor_goto(grid->handle, row, col);
|
||||
ui_call_reset_cursor();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1239,6 +1239,17 @@ void tui_mode_info_set(TUIData *tui, bool guicursor_enabled, Array args)
|
||||
tui_set_mode(tui, tui->showing_mode);
|
||||
}
|
||||
|
||||
void tui_set_cursor(TUIData *tui)
|
||||
{
|
||||
tui_set_mode(tui, tui->showing_mode);
|
||||
}
|
||||
|
||||
void tui_reset_cursor(TUIData *tui)
|
||||
{
|
||||
unibi_out_ext(tui, tui->unibi_ext.reset_cursor_color);
|
||||
unibi_out_ext(tui, tui->unibi_ext.reset_cursor_style);
|
||||
}
|
||||
|
||||
void tui_update_menu(TUIData *tui)
|
||||
{
|
||||
// Do nothing; menus are for GUI only
|
||||
|
Loading…
Reference in New Issue
Block a user