diff options
| author | Nemesis <jerome.desroziers.54@gmail.com> | 2024-07-28 12:57:48 +0200 |
|---|---|---|
| committer | Nemesis <jerome.desroziers.54@gmail.com> | 2024-07-28 12:57:48 +0200 |
| commit | e64e9d6422e0404c15a1544676c38ddb08e7a7ed (patch) | |
| tree | d8cfe17d0259ae5452bb3562b1ec0faace85ea75 /main.go | |
| parent | 3a803e94cfa813861d4f8ca2257d934892045614 (diff) | |
fixed hangout when pasting empty string with kitty
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -199,7 +199,7 @@ func paste() error { } buf = append(buf, b) // Skip initial 7 bytes of response - if len(buf) > 9 && buf[len(buf)-2] == '\x1b' && buf[len(buf)-1] == '\\' { + if len(buf) >= 9 && buf[len(buf)-2] == '\x1b' && buf[len(buf)-1] == '\\' { buf = buf[:len(buf)-2] break } |
