diff options
| author | _ov4 <ov4@ov4.org> | 2026-09-23 11:57:31 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-09-23 11:57:31 +0000 |
| commit | 75270bdeaa993c3088667d5b3604fe9259bccadc (patch) | |
| tree | 9bf74ba622fac472cdfea128e90e175cc23a20fc /src/line/mode.cc | |
| parent | 4c585130e84869acaa2812a3546468af26773674 (diff) | |
add append input for non-empty line
Diffstat (limited to 'src/line/mode.cc')
| -rw-r--r-- | src/line/mode.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/line/mode.cc b/src/line/mode.cc index 2ef470d..4122411 100644 --- a/src/line/mode.cc +++ b/src/line/mode.cc @@ -68,6 +68,8 @@ void clear_below() string readline() { + T_position pos = get_cursor_position(); + line_begin_pos = pos.col; string buffer; char c; while (read(STDIN_FILENO, &c, 1) == 1) |
