From 768a9a2737e302a7c93c804786b79f440708d953 Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Mon, 4 Feb 2019 13:50:42 -0500 Subject: [PATCH] tweaked order of precedence for selection by context --- src/lib/buf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/buf.c b/src/lib/buf.c index 2bbc6d0..32ffced 100644 --- a/src/lib/buf.c +++ b/src/lib/buf.c @@ -556,10 +556,10 @@ void buf_selctx(Buf* buf, bool (*isword)(Rune)) { selblock(buf, '{', '}'); else if (curr == '<' || curr == '>') selblock(buf, '<', '>'); - else if (selquote(buf, '"') || selquote(buf, '`') || selquote(buf, '\'')) - ; /* condition performs selection */ else if (buf->selection.end == bol || curr == '\n') selline(buf); + else if (selquote(buf, '"') || selquote(buf, '`') || selquote(buf, '\'')) + ; /* condition performs selection */ else if (risword(curr)) buf_selword(buf, isword); else -- 2.51.0