diff options
-rw-r--r-- | st.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1135,10 +1135,10 @@ selnotify(XEvent *e) | |||
1135 | *repl++ = '\r'; | 1135 | *repl++ = '\r'; |
1136 | } | 1136 | } |
1137 | 1137 | ||
1138 | if (IS_SET(MODE_BRCKTPASTE)) | 1138 | if (IS_SET(MODE_BRCKTPASTE) && ofs == 0) |
1139 | ttywrite("\033[200~", 6); | 1139 | ttywrite("\033[200~", 6); |
1140 | ttysend((char *)data, nitems * format / 8); | 1140 | ttysend((char *)data, nitems * format / 8); |
1141 | if (IS_SET(MODE_BRCKTPASTE)) | 1141 | if (IS_SET(MODE_BRCKTPASTE) && rem == 0) |
1142 | ttywrite("\033[201~", 6); | 1142 | ttywrite("\033[201~", 6); |
1143 | XFree(data); | 1143 | XFree(data); |
1144 | /* number of 32-bit chunks returned */ | 1144 | /* number of 32-bit chunks returned */ |