ed_move_to_beg(): * Move cursor to the beginning of line * [^A] [^A] */
| 227 | * [^A] [^A] |
| 228 | */ |
| 229 | protected el_action_t |
| 230 | /*ARGSUSED*/ |
| 231 | ed_move_to_beg(EditLine *el, Int c __attribute__((__unused__))) |
| 232 | { |
| 233 | |
| 234 | el->el_line.cursor = el->el_line.buffer; |
| 235 | |
| 236 | if (el->el_map.type == MAP_VI) { |
| 237 | /* We want FIRST non space character */ |
| 238 | while (Isspace(*el->el_line.cursor)) |
| 239 | el->el_line.cursor++; |
| 240 | if (el->el_chared.c_vcmd.action != NOP) { |
| 241 | cv_delfini(el); |
| 242 | return CC_REFRESH; |
| 243 | } |
| 244 | } |
| 245 | return CC_CURSOR; |
| 246 | } |
| 247 | |
| 248 | |
| 249 | /* ed_transpose_chars(): |
nothing calls this directly
no test coverage detected