aboutsummaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
Diffstat (limited to 'st.c')
-rw-r--r--st.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/st.c b/st.c
index dae7b91..d4dfe6e 100644
--- a/st.c
+++ b/st.c
@@ -419,7 +419,8 @@ selnormalize(void)
419int 419int
420selected(int x, int y) 420selected(int x, int y)
421{ 421{
422 if (sel.mode == SEL_EMPTY) 422 if (sel.mode == SEL_EMPTY || sel.ob.x == -1 ||
423 sel.alt != IS_SET(MODE_ALTSCREEN))
423 return 0; 424 return 0;
424 425
425 if (sel.type == SEL_RECTANGULAR) 426 if (sel.type == SEL_RECTANGULAR)