MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / vi_replace_char

Function vi_replace_char

extern/editline/src/vi.c:311–323  ·  view source on GitHub ↗

vi_replace_char(): * Vi replace character under the cursor with the next character typed * [r] */

Source from the content-addressed store, hash-verified

309 * [r]
310 */
311protected el_action_t
312/*ARGSUSED*/
313vi_replace_char(EditLine *el, Int c __attribute__((__unused__)))
314{
315
316 if (el->el_line.cursor >= el->el_line.lastchar)
317 return CC_ERROR;
318
319 el->el_map.current = el->el_map.key;
320 el->el_state.inputmode = MODE_REPLACE_1;
321 cv_undo(el);
322 return CC_ARGHACK;
323}
324
325
326/* vi_replace_mode():

Callers

nothing calls this directly

Calls 1

cv_undoFunction · 0.85

Tested by

no test coverage detected