st
simple terminal
git clone https://9o.is/git/st.git
commit abfacd09aa03dd28262f13cf3c8f03f029613ff5 parent a6ddb3fcf6991b7d93175fdf2fc661e4b33d61dd Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Tue, 20 Mar 2018 21:25:30 +0100 fix regression by selecting clipboard text "restore the old behaviour that the primary doesn't get deleted by a simple left click" Patch by Daniel Tameling <tamelingdaniel@gmail.com>, thanks! Diffstat:
| M | x.c | | | 3 | +++ |
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/x.c b/x.c @@ -618,6 +618,9 @@ selrequest(XEvent *e) void setsel(char *str, Time t) { + if (!str) + return; + free(xsel.primary); xsel.primary = str;