1
0
forked from aniani/vim

updated for version 7.0021

This commit is contained in:
Bram Moolenaar
2004-12-09 21:34:53 +00:00
parent 741b07e009
commit 293ee4d421
109 changed files with 3216 additions and 1368 deletions

View File

@@ -1643,6 +1643,7 @@ set_termname(term)
{KS_CIS, "IS"}, {KS_CIE, "IE"},
{KS_TS, "ts"}, {KS_FS, "fs"},
{KS_CWP, "WP"}, {KS_CWS, "WS"},
{KS_CSI, "SI"}, {KS_CEI, "EI"},
{(enum SpecialKey)0, NULL}
};
@@ -3399,6 +3400,31 @@ cursor_off()
}
}
/*
* Set cursor shape to match Insert mode.
*/
void
term_cursor_shape()
{
static int showing_insert_mode = MAYBE;
if (!full_screen || *T_CSI == NUL || *T_CEI == NUL)
return;
if (State & INSERT)
{
if (showing_insert_mode != TRUE)
out_str(T_CSI); /* disable cursor */
showing_insert_mode = TRUE;
}
else
{
if (showing_insert_mode != FALSE)
out_str(T_CEI); /* disable cursor */
showing_insert_mode = FALSE;
}
}
/*
* Set scrolling region for window 'wp'.
* The region starts 'off' lines from the start of the window.