]> git.mdlowis.com Git - projs/tide.git/commitdiff
tweaked order of precedence for selection by context
authorMichael D. Lowis <mike.lowis@gentex.com>
Mon, 4 Feb 2019 18:50:42 +0000 (13:50 -0500)
committerMichael D. Lowis <mike.lowis@gentex.com>
Mon, 4 Feb 2019 18:50:42 +0000 (13:50 -0500)
src/lib/buf.c

index 2bbc6d04f554fc7474e16beab0c001851a22b20c..32ffcede17a4c0d8c616803c89e0f9db03b40014 100644 (file)
@@ -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