Remove CURSOR_SHAPE #ifdef tests

See issue #333
This commit is contained in:
Felipe Oliveira Carvalho
2014-03-10 02:02:40 -03:00
committed by Thiago de Arruda
parent 1684bec635
commit 3cac32e49c
12 changed files with 2 additions and 72 deletions

View File

@@ -294,9 +294,7 @@ getcmdline (
#endif
setmouse();
#ifdef CURSOR_SHAPE
ui_cursor_shape(); /* may show different cursor shape */
#endif
/* When inside an autocommand for writing "exiting" may be set and
* terminal mode set to cooked. Need to set raw mode here then. */
@@ -866,9 +864,8 @@ getcmdline (
beep_flush();
else
ccline.overstrike = !ccline.overstrike;
#ifdef CURSOR_SHAPE
ui_cursor_shape(); /* may show different cursor shape */
#endif
goto cmdline_not_changed;
case Ctrl_HAT:
@@ -908,9 +905,7 @@ getcmdline (
else
set_imsearch_global();
}
#ifdef CURSOR_SHAPE
ui_cursor_shape(); /* may show different cursor shape */
#endif
/* Show/unshow value of 'keymap' in status lines later. */
status_redraw_curbuf();
goto cmdline_not_changed;
@@ -1563,9 +1558,7 @@ returncmd:
im_set_active(FALSE);
#endif
setmouse();
#ifdef CURSOR_SHAPE
ui_cursor_shape(); /* may show different cursor shape */
#endif
{
char_u *p = ccline.cmdbuff;
@@ -1967,8 +1960,6 @@ redraw:
return (char_u *)line_ga.ga_data;
}
# if defined(MCH_CURSOR_SHAPE) || defined(FEAT_GUI) \
|| defined(FEAT_MOUSESHAPE) || defined(PROTO)
/*
* Return TRUE if ccline.overstrike is on.
*/
@@ -1983,10 +1974,6 @@ int cmdline_at_end(void) {
return ccline.cmdpos >= ccline.cmdlen;
}
#endif
/*
* Allocate a new command line buffer.
* Assigns the new buffer to ccline.cmdbuff and ccline.cmdbufflen.