comparison src/ex_docmd.c @ 89:e1a8191c6768

updated for version 7.0036
author vimboss
date Sun, 09 Jan 2005 21:16:21 +0000
parents 60834e43d187
children 9c72ca2bfa44
comparison
equal deleted inserted replaced
88:2b4debdc8d2c 89:e1a8191c6768
8083 */ 8083 */
8084 static void 8084 static void
8085 ex_startinsert(eap) 8085 ex_startinsert(eap)
8086 exarg_T *eap; 8086 exarg_T *eap;
8087 { 8087 {
8088 /* Ignore the command when already in Insert mode. Inserting an
8089 * expression register that invokes a function can do this. */
8090 if (State & INSERT)
8091 return;
8092
8088 if (eap->forceit) 8093 if (eap->forceit)
8089 { 8094 {
8090 coladvance((colnr_T)MAXCOL); 8095 coladvance((colnr_T)MAXCOL);
8091 curwin->w_curswant = MAXCOL; 8096 curwin->w_curswant = MAXCOL;
8092 curwin->w_set_curswant = FALSE; 8097 curwin->w_set_curswant = FALSE;