diff options
Diffstat (limited to 'src/e_events.go')
-rw-r--r-- | src/e_events.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/e_events.go b/src/e_events.go index 99813ab..4c38763 100644 --- a/src/e_events.go +++ b/src/e_events.go @@ -286,6 +286,9 @@ func e_readline(event tcell.EventKey, buffer *Buffer) { return } else if buffer.cursor == buffer.len() { buffer.data = (buffer.data)[:buffer.cursor - 1] + } else { + buffer.data = append(buffer.data[:buffer.cursor - 1], + buffer.data[buffer.cursor:]...) } buffer.cursor -= 1 } else if event.Key() == tcell.KeyCtrlU { |