summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index c698a8d..d25666e 100644
--- a/main.go
+++ b/main.go
@@ -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
}