summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto E. Vargas Caballero <k0ga@shike2.net>2025-11-28 16:31:59 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2025-12-02 20:09:47 +0100
commit0723b7e39e73b2bcfce047b047f6e795d6184028 (patch)
treefc950353a78ac059eeae6b600bbf13ead9b09886
parentbump version to 0.9.3 (diff)
downloadst-0723b7e39e73b2bcfce047b047f6e795d6184028.tar.gz
st-0723b7e39e73b2bcfce047b047f6e795d6184028.zip
Disable bracked paste in reset
Sadly, there are too many programs today that enable this mode and it is becoming very common to find the terminal adding characters before and after in every of your pastes. A reset should disable this mode.
-rw-r--r--st.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/st.c b/st.c
index 8e57991..e55e7b3 100644
--- a/st.c
+++ b/st.c
@@ -2358,6 +2358,7 @@ eschandle(uchar ascii)
2358 resettitle(); 2358 resettitle();
2359 xloadcols(); 2359 xloadcols();
2360 xsetmode(0, MODE_HIDE); 2360 xsetmode(0, MODE_HIDE);
2361 xsetmode(0, MODE_BRCKTPASTE);
2361 break; 2362 break;
2362 case '=': /* DECPAM -- Application keypad */ 2363 case '=': /* DECPAM -- Application keypad */
2363 xsetmode(1, MODE_APPKEYPAD); 2364 xsetmode(1, MODE_APPKEYPAD);