mirror of
https://github.com/vim/vim.git
synced 2025-09-28 04:24:06 -04:00
patch 8.1.2237: mode() result depends on whether CURSOR_SHAPE is defined
Problem: Mode() result after usign "r" depends on whether CURSOR_SHAPE is defined. (Christian Brabandt) Solution: Move the #ifdef to only skip ui_cursor_shape().
This commit is contained in:
@@ -870,13 +870,13 @@ getcount:
|
|||||||
*/
|
*/
|
||||||
if (cp != NULL)
|
if (cp != NULL)
|
||||||
{
|
{
|
||||||
#ifdef CURSOR_SHAPE
|
|
||||||
if (repl)
|
if (repl)
|
||||||
{
|
{
|
||||||
State = REPLACE; /* pretend Replace mode */
|
State = REPLACE; /* pretend Replace mode */
|
||||||
|
#ifdef CURSOR_SHAPE
|
||||||
ui_cursor_shape(); /* show different cursor shape */
|
ui_cursor_shape(); /* show different cursor shape */
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
if (lang && curbuf->b_p_iminsert == B_IMODE_LMAP)
|
if (lang && curbuf->b_p_iminsert == B_IMODE_LMAP)
|
||||||
{
|
{
|
||||||
/* Allow mappings defined with ":lmap". */
|
/* Allow mappings defined with ":lmap". */
|
||||||
@@ -913,9 +913,7 @@ getcount:
|
|||||||
}
|
}
|
||||||
p_smd = save_smd;
|
p_smd = save_smd;
|
||||||
#endif
|
#endif
|
||||||
#ifdef CURSOR_SHAPE
|
|
||||||
State = NORMAL_BUSY;
|
State = NORMAL_BUSY;
|
||||||
#endif
|
|
||||||
#ifdef FEAT_CMDL_INFO
|
#ifdef FEAT_CMDL_INFO
|
||||||
need_flushbuf |= add_to_showcmd(*cp);
|
need_flushbuf |= add_to_showcmd(*cp);
|
||||||
#endif
|
#endif
|
||||||
|
@@ -741,6 +741,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2237,
|
||||||
/**/
|
/**/
|
||||||
2236,
|
2236,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user