summaryrefslogtreecommitdiff
path: root/src/completion.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-04-15 00:34:00 +0100
committerMaxime Coste <frrrwww@gmail.com>2015-04-15 00:34:00 +0100
commitbf028388163f3c5e8fd235ccd5d81efa16d1eb22 (patch)
tree870dbbbc0bbc669fc12117f516167ad5ea0f6116 /src/completion.cc
parent63bbb6e3dfdbbcd2ce52cec5b4b08795c0b5d008 (diff)
Remove is_blank, which is identical to is_horizontal_blank
Diffstat (limited to 'src/completion.cc')
-rw-r--r--src/completion.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/completion.cc b/src/completion.cc
index 9fc3ed78..70a6f1c2 100644
--- a/src/completion.cc
+++ b/src/completion.cc
@@ -17,10 +17,10 @@ Completions shell_complete(const Context& context, CompletionFlags flags,
{
command = (pos == 0 or prefix[pos-1] == ';' or prefix[pos-1] == '|' or
(pos > 1 and prefix[pos-1] == '&' and prefix[pos-2] == '&'));
- while (pos != len and is_blank(prefix[pos]))
+ while (pos != len and is_horizontal_blank(prefix[pos]))
++pos;
word_start = pos;
- while (pos != len and not is_blank(prefix[pos]))
+ while (pos != len and not is_horizontal_blank(prefix[pos]))
++pos;
word_end = pos;
}