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 | dd0b7a077f5184c0eac99955aeb91f3c6a0d9c11 (patch) | |
tree | 67c0ea21e0513e6c2410456ebf4589efc99bb6fa | |
parent | f471a32d29ad9e5e06cf5e5d5efc8422483f535e (diff) | |
download | st-dd0b7a077f5184c0eac99955aeb91f3c6a0d9c11.tar.gz st-dd0b7a077f5184c0eac99955aeb91f3c6a0d9c11.zip |
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) { | |||
551 | sel.mode = 1; | 551 | sel.mode = 1; |
552 | sel.ex = sel.bx = X2COL(e->xbutton.x); | 552 | sel.ex = sel.bx = X2COL(e->xbutton.x); |
553 | sel.ey = sel.by = Y2ROW(e->xbutton.y); | 553 | sel.ey = sel.by = Y2ROW(e->xbutton.y); |
554 | draw(); | ||
554 | } | 555 | } |
555 | } | 556 | } |
556 | 557 | ||
@@ -619,6 +620,7 @@ void selclear(XEvent *e) { | |||
619 | return; | 620 | return; |
620 | sel.bx = -1; | 621 | sel.bx = -1; |
621 | tsetdirt(sel.b.y, sel.e.y); | 622 | tsetdirt(sel.b.y, sel.e.y); |
623 | draw(); | ||
622 | } | 624 | } |
623 | 625 | ||
624 | void | 626 | void |