Created
January 12, 2013 08:41
-
-
Save saitoha/4516791 to your computer and use it in GitHub Desktop.
Vim DECLRMM test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -r b89e2bdcc6e5 src/screen.c | |
--- a/src/screen.c Sun Dec 16 12:50:40 2012 +0100 | |
+++ b/src/screen.c Sat Jan 12 17:38:58 2013 +0900 | |
@@ -8890,6 +8890,24 @@ | |
*/ | |
clear_cmdline = TRUE; | |
+ char buf[256]; | |
+ if (del) { | |
+ sprintf(buf, | |
+ "\033[?69h\033[%d;%ds\033[%d;%dr\033[%dS\033[r\033[s\033[?69l", | |
+ W_WINCOL(wp) + 1, W_ENDCOL(wp), | |
+ W_WINROW(wp) + 1, W_WINROW(wp) + wp->w_height, | |
+ line_count); | |
+ } else { | |
+ sprintf(buf, | |
+ "\033[?69h\033[%d;%ds\033[%d;%dr\033[%dT\033[r\033[s\033[?69l", | |
+ W_WINCOL(wp) + 1, W_ENDCOL(wp), | |
+ W_WINROW(wp) + 1, W_WINROW(wp) + wp->w_height, | |
+ line_count); | |
+ } | |
+ out_str(buf); | |
+ redraw_block(row - 1, row + line_count, wp); | |
+ return OK; | |
+ | |
/* | |
* If the terminal can set a scroll region, use that. | |
* Always do this in a vertically split window. This will redraw from |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment