]> granicus.if.org Git - vim/commitdiff
patch 8.1.2237: mode() result depends on whether CURSOR_SHAPE is defined v8.1.2237
authorBram Moolenaar <Bram@vim.org>
Thu, 31 Oct 2019 18:55:55 +0000 (19:55 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 31 Oct 2019 18:55:55 +0000 (19:55 +0100)
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().

src/normal.c
src/version.c

index f2527e144bdf733252e747edf21fdc6c58be5653..c20c072fd09dbd97ac352d056f46a56b988b92f1 100644 (file)
@@ -870,13 +870,13 @@ getcount:
         */
        if (cp != NULL)
        {
-#ifdef CURSOR_SHAPE
            if (repl)
            {
                State = REPLACE;        /* pretend Replace mode */
+#ifdef CURSOR_SHAPE
                ui_cursor_shape();      /* show different cursor shape */
-           }
 #endif
+           }
            if (lang && curbuf->b_p_iminsert == B_IMODE_LMAP)
            {
                /* Allow mappings defined with ":lmap". */
@@ -913,9 +913,7 @@ getcount:
            }
            p_smd = save_smd;
 #endif
-#ifdef CURSOR_SHAPE
            State = NORMAL_BUSY;
-#endif
 #ifdef FEAT_CMDL_INFO
            need_flushbuf |= add_to_showcmd(*cp);
 #endif
index 9766d656a4c6ea1dcdcfd3008b334edac326ef3a..3eaf21fa33b29daccff6c0b23e18fafe1a8ee121 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2237,
 /**/
     2236,
 /**/