ed_move_to_end(): * Move cursor to the end of line * [^E] [^E] */
| 204 | * [^E] [^E] |
| 205 | */ |
| 206 | protected el_action_t |
| 207 | /*ARGSUSED*/ |
| 208 | ed_move_to_end(EditLine *el, Int c __attribute__((__unused__))) |
| 209 | { |
| 210 | |
| 211 | el->el_line.cursor = el->el_line.lastchar; |
| 212 | if (el->el_map.type == MAP_VI) { |
| 213 | if (el->el_chared.c_vcmd.action != NOP) { |
| 214 | cv_delfini(el); |
| 215 | return CC_REFRESH; |
| 216 | } |
| 217 | #ifdef VI_MOVE |
| 218 | el->el_line.cursor--; |
| 219 | #endif |
| 220 | } |
| 221 | return CC_CURSOR; |
| 222 | } |
| 223 | |
| 224 | |
| 225 | /* ed_move_to_beg(): |
nothing calls this directly
no test coverage detected