It was modified to give the correct line number.
Now it will not be broken.
I have always helped in your work.
--------
Thanks.
Nobuhiro Takasaki
I am sorry.
And procedures to reproduce, to send the screen shot.
(1) > dir C:\Windows
(2) > vim -u NONE
(3) :!foo
(4) :q!
1. Make a backlog
2. start up
3. Put out a message of error (There is a rewind here)
4. End (And exit are restored with the contents of winding back)
It served four screenshots.
I will take care in the future.
---------
Thanks.
Nobuhiro Takasaki
It was too simple. It is a failure.
I think that it is okay with this patch.
This is to check the g_fTermcapMode.
--------
Thanks.
Nobuhiro Takasaki
It may be compilation error with FEAT_GUI.
diff --git a/src/os_win32.c b/src/os_win32.c
index 5114863..e738619 100644
--- a/src/os_win32.c
+++ b/src/os_win32.c
@@ -230,6 +230,7 @@ static int win32_set_archive(char_u *name);
#ifndef FEAT_GUI_W32
static int suppress_winsize = 1; /* don't fiddle with console */
+static void set_console_cursor_position(void);
#endif
static char_u *exe_path = NULL;
@@ -1396,7 +1397,7 @@ mch_set_cursor_shape(int thickness)
SetConsoleCursorInfo(g_hConOut, &ConsoleCursorInfo);
if (s_cursor_visible)
- SetConsoleCursorPosition(g_hConOut, g_coord);
+ set_console_cursor_position();
}
void
@@ -6743,3 +6744,17 @@ fix_arg_enc(void)
set_alist_count();
}
#endif
+
+#ifndef FEAT_GUI_W32
+ static void
+set_console_cursor_position(void)
+{
+ CONSOLE_SCREEN_BUFFER_INFO i;
+
+ if (g_fTermcapMode)
+ return;
+
+ GetConsoleScreenBufferInfo(g_cbNonTermcap.handle, &i);
+ SetConsoleCursorPosition(g_hConOut, i.dwCursorPosition);
+}
+#endif
I'm using windows7. so can't reproduce this problem. prob, this occurs on windows10.
1. type return key enough to scroll-up
2. vim.exe
3. :!dir
4. :q
cursor position should be at location(next lien) that started vim.
thanks.
- mattn
Hi mattn!
On Fr, 02 Okt 2015, mattn wrote:
> > I can test it. What do I need to do?
>
> 1. type return key enough to scroll-up
> 2. vim.exe
> 3. :!dir
> 4. :q
> cursor position should be at location(next lien) that started vim.
[...snip...]