Browse Source

selection: fix view to match actual selection on first cell

master
Avi Halachmi (:avih) 6 years ago
committed by Hiltjo Posthuma
parent
commit
f1546cf9c1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      st.c

+ 1
- 1
st.c View File

@ -458,7 +458,7 @@ selextend(int col, int row, int type, int done)
selnormalize();
sel.type = type;
if (oldey != sel.oe.y || oldex != sel.oe.x || oldtype != sel.type)
if (oldey != sel.oe.y || oldex != sel.oe.x || oldtype != sel.type || sel.mode == SEL_EMPTY)
tsetdirt(MIN(sel.nb.y, oldsby), MAX(sel.ne.y, oldsey));
sel.mode = done ? SEL_IDLE : SEL_READY;


Loading…
Cancel
Save