summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/main.c b/main.c
index ba30adf..bc221e6 100644
--- a/main.c
+++ b/main.c
@@ -914,9 +914,7 @@ loop:
break;
case 'K': {
- TxtLoc a = word_start(l);
- TxtLoc b = word_end(l);
- TxtRange r = txt_range_incl(a, b);
+ TxtRange r = txt_range_incl(word_start(l), word_end(l));
Str s = txt_collect_range(
(TxtLoc) { r.t, r.p0, r.i0 },
(TxtLoc) { r.t, r.p1, r.i1 },