Mercurial > vim
comparison src/ex_docmd.c @ 98:98435a8ddb09
updated for version 7.0038
author | vimboss |
---|---|
date | Fri, 14 Jan 2005 21:42:54 +0000 |
parents | 9c72ca2bfa44 |
children | a3d7e800ddec |
comparison
equal
deleted
inserted
replaced
97:d4f3db33d782 | 98:98435a8ddb09 |
---|---|
8082 */ | 8082 */ |
8083 static void | 8083 static void |
8084 ex_startinsert(eap) | 8084 ex_startinsert(eap) |
8085 exarg_T *eap; | 8085 exarg_T *eap; |
8086 { | 8086 { |
8087 if (eap->forceit) | |
8088 { | |
8089 coladvance((colnr_T)MAXCOL); | |
8090 curwin->w_curswant = MAXCOL; | |
8091 curwin->w_set_curswant = FALSE; | |
8092 } | |
8093 | |
8087 /* Ignore the command when already in Insert mode. Inserting an | 8094 /* Ignore the command when already in Insert mode. Inserting an |
8088 * expression register that invokes a function can do this. */ | 8095 * expression register that invokes a function can do this. */ |
8089 if (State & INSERT) | 8096 if (State & INSERT) |
8090 return; | 8097 return; |
8091 | 8098 |
8092 if (eap->forceit) | 8099 if (eap->forceit) |
8093 { | 8100 { |
8094 coladvance((colnr_T)MAXCOL); | |
8095 curwin->w_curswant = MAXCOL; | |
8096 curwin->w_set_curswant = FALSE; | |
8097 if (eap->cmdidx == CMD_startinsert) | 8101 if (eap->cmdidx == CMD_startinsert) |
8098 restart_edit = 'a'; | 8102 restart_edit = 'a'; |
8099 else | 8103 else |
8100 restart_edit = 'R'; | 8104 restart_edit = 'R'; |
8101 } | 8105 } |