summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Carbonneaux2014-08-05 17:25:38 -0400
committerQuentin Carbonneaux2014-08-05 17:30:27 -0400
commit5e3013127f0bf1110a81cd737d6b84d51576865d (patch)
tree005bcc084bbbc5385c43b1a88219453e5412f074
parent95488897534f2028d8aa6ae87667b5d450f6976a (diff)
hilight lines fully selected
-rw-r--r--win.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/win.c b/win.c
index 90b0063..5cc8c48 100644
--- a/win.c
+++ b/win.c
@@ -391,7 +391,9 @@ draw(W *w, GColor bg)
if (r == '\t') {
pushfrag(&f, ' ', rw);
flushfrag(&f, w, x, y, sel);
- } else if (r != '\n')
+ } else if (r == '\n')
+ f.w = w->gr.w - HMargin;
+ else
pushfrag(&f, r, rw);
}