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. Using this patch: diff --git a/src/os_win32.c b/src/os_win32.c --- a/src/os_win32.c +++ b/src/os_win32.c @@ -230,6 +230,7 @@ static int win32_set_archive(char_u *nam #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 don't see a difference: http://256bit.org/~chrisbra/vim_7.4.889_patched_screenscroll.webm http://256bit.org/~chrisbra/vim_7.4.889_unpatched.webm Best, Christian -- Zuerst schuf Gott die Idioten; das war die Vorübung. Dann schuf er die Schule. -- Mark Twain (eigl. Samuel Langhorne Clemens) -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.