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

Function el_deletestr

extern/editline/src/chared.c:634–647  ·  view source on GitHub ↗

el_deletestr(): * Delete num characters before the cursor */

Source from the content-addressed store, hash-verified

632 * Delete num characters before the cursor
633 */
634public void
635el_deletestr(EditLine *el, int n)
636{
637 if (n <= 0)
638 return;
639
640 if (el->el_line.cursor < &el->el_line.buffer[n])
641 return;
642
643 c_delbefore(el, n); /* delete before dot */
644 el->el_line.cursor -= n;
645 if (el->el_line.cursor < el->el_line.buffer)
646 el->el_line.cursor = el->el_line.buffer;
647}
648
649/* el_cursor():
650 * Move the cursor to the left or the right of the current position

Callers 1

fn_completeFunction · 0.85

Calls 1

c_delbeforeFunction · 0.85

Tested by

no test coverage detected