summaryrefslogtreecommitdiffstats
path: root/st.c
diff options
context:
space:
mode:
Diffstat (limited to 'st.c')
-rw-r--r--st.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/st.c b/st.c
index 0ebd3fb..4215059 100644
--- a/st.c
+++ b/st.c
@@ -495,7 +495,10 @@ selnormalize(void)
return;
i = tlinelen(sel.nb.y);
if (i < sel.nb.x)
- sel.nb.x = i;
+ {
+ sel.nb.x = 0;
+ sel.nb.y++;
+ }
if (tlinelen(sel.ne.y) <= sel.ne.x)
sel.ne.x = term.col - 1;
}