mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:7.4.494
Problem: Cursor shape is wrong after a CompleteDone autocommand. Solution: Update the cursor and mouse shape after ":normal" restores the state. (Jacob Niehus) https://code.google.com/p/vim/source/detail?r=v7-4-494
This commit is contained in:
parent
2ba50a7846
commit
75b7b04436
@ -70,6 +70,7 @@
|
|||||||
#include "nvim/os/input.h"
|
#include "nvim/os/input.h"
|
||||||
#include "nvim/os/time.h"
|
#include "nvim/os/time.h"
|
||||||
#include "nvim/ex_cmds_defs.h"
|
#include "nvim/ex_cmds_defs.h"
|
||||||
|
#include "nvim/mouse.h"
|
||||||
|
|
||||||
static int quitmore = 0;
|
static int quitmore = 0;
|
||||||
static int ex_pressedreturn = FALSE;
|
static int ex_pressedreturn = FALSE;
|
||||||
@ -7222,8 +7223,10 @@ static void ex_normal(exarg_T *eap)
|
|||||||
msg_didout |= save_msg_didout; /* don't reset msg_didout now */
|
msg_didout |= save_msg_didout; /* don't reset msg_didout now */
|
||||||
|
|
||||||
/* Restore the state (needed when called from a function executed for
|
/* Restore the state (needed when called from a function executed for
|
||||||
* 'indentexpr'). */
|
* 'indentexpr'). Update the mouse and cursor, they may have changed. */
|
||||||
State = save_State;
|
State = save_State;
|
||||||
|
setmouse();
|
||||||
|
ui_cursor_shape(); /* may show different cursor shape */
|
||||||
free(arg);
|
free(arg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -244,7 +244,7 @@ static int included_patches[] = {
|
|||||||
//497,
|
//497,
|
||||||
//496 NA
|
//496 NA
|
||||||
//495 NA
|
//495 NA
|
||||||
//494,
|
494,
|
||||||
//493,
|
//493,
|
||||||
//492,
|
//492,
|
||||||
//491,
|
//491,
|
||||||
|
Loading…
Reference in New Issue
Block a user