]> granicus.if.org Git - vim/commitdiff
patch 8.0.1380: using "vim -r swapfile" the hit-enter prompt is misplaced. v8.0.1380
authorBram Moolenaar <Bram@vim.org>
Sat, 9 Dec 2017 14:11:24 +0000 (15:11 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 9 Dec 2017 14:11:24 +0000 (15:11 +0100)
Problem:    When recovering a file with "vim -r swapfile" the hit-enter prompt
            is at the top of the window.
Solution:   Invalidate the cursor position.

src/term.c
src/version.c

index 4e38bae5f9851bb0cbeb05402f4f0a6a0c284f1c..ffa3944d69fa5fd91d3c396540ad7a00d1b24a33 100644 (file)
@@ -3510,6 +3510,9 @@ may_req_ambiguous_char_width(void)
         out_str((char_u *)"  ");
         term_windgoto(0, 0);
 
+        /* Need to reset the known cursor position. */
+        screen_start();
+
         /* check for the characters now, otherwise they might be eaten by
          * get_keystroke() */
         out_flush();
@@ -4585,7 +4588,7 @@ check_termcode(
                                is_mac_terminal = TRUE;
                            }
 # ifdef FEAT_MOUSE_SGR
-                           /* Iterm2 sends 0;95;0 */
+                           /* iTerm2 sends 0;95;0 */
                            if (STRNCMP(tp + extra - 2, "0;95;0c", 7) == 0)
                                is_iterm2 = TRUE;
 # endif
@@ -4597,7 +4600,7 @@ check_termcode(
                        {
 # ifdef FEAT_MOUSE_SGR
                            /* Xterm version 277 supports SGR.  Also support
-                            * Terminal.app and iterm2. */
+                            * Terminal.app and iTerm2. */
                            if (version >= 277 || is_iterm2 || is_mac_terminal)
                                set_option_value((char_u *)"ttym", 0L,
                                                          (char_u *)"sgr", 0);
index 6cb6e2cd3658fb6493b79b05ec8eb170fedadb6a..fad2fdc05b71179540811cc91ee46d4cf6ef5dbd 100644 (file)
@@ -771,6 +771,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1390,
 /**/
     1379,
 /**/