diff options
author | Joe <rbo@gmx.us> | 2024-05-13 20:20:20 +0200 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-05-13 20:20:20 +0200 |
commit | 699355e352c2d0d374f404bc42809cdd5220e5fb (patch) | |
tree | c2ed8a316bbf00381b63d8c4e7bd932e8a026098 /src/e_events.go | |
parent | go (diff) | |
download | hardflip-699355e352c2d0d374f404bc42809cdd5220e5fb.tar.gz hardflip-699355e352c2d0d374f404bc42809cdd5220e5fb.tar.bz2 hardflip-699355e352c2d0d374f404bc42809cdd5220e5fb.tar.xz hardflip-699355e352c2d0d374f404bc42809cdd5220e5fb.tar.zst hardflip-699355e352c2d0d374f404bc42809cdd5220e5fb.zip |
go
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 { |