diff options
author | Christoph Lohmann <20h@r-36.net> | 2012-09-05 22:17:42 +0200 |
---|---|---|
committer | Christoph Lohmann <20h@r-36.net> | 2012-09-05 22:17:42 +0200 |
commit | 001b0152a4fa6ebd937612bce9bfd6cba7ce7c0a (patch) | |
tree | 67c0ea21e0513e6c2410456ebf4589efc99bb6fa | |
parent | 62c5abf2a72e6e4f15031ad5b4e8738a6f866ea9 (diff) | |
download | st-001b0152a4fa6ebd937612bce9bfd6cba7ce7c0a.tar.gz st-001b0152a4fa6ebd937612bce9bfd6cba7ce7c0a.tar.bz2 |
If the selection is cleared, draw() and do it on button press too.
-rw-r--r-- | st.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -551,6 +551,7 @@ bpress(XEvent *e) { sel.mode = 1; sel.ex = sel.bx = X2COL(e->xbutton.x); sel.ey = sel.by = Y2ROW(e->xbutton.y); + draw(); } } @@ -619,6 +620,7 @@ void selclear(XEvent *e) { return; sel.bx = -1; tsetdirt(sel.b.y, sel.e.y); + draw(); } void |