aboutsummaryrefslogtreecommitdiffhomepage
path: root/reader.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-05-07 17:31:24 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-05-07 17:31:24 -0700
commit0c79bb6e7c679552faba6cb333592eb1da26db35 (patch)
tree6eb08236422a8f31862f1d898d8fddcf08eb0b3c /reader.cpp
parent1a264ab7c20cbd0e20eef3e3d83fedb7b69c163d (diff)
Factor is_potential_path to properly handle CDPATH
This will let us color cd commands better
Diffstat (limited to 'reader.cpp')
-rw-r--r--reader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/reader.cpp b/reader.cpp
index 1e262003..be56bc45 100644
--- a/reader.cpp
+++ b/reader.cpp
@@ -1296,8 +1296,8 @@ struct autosuggestion_context_t {
// Here we do something a little funny
// If the line ends with a space, and the cursor is not at the end,
- // Don't use completion autosuggestions. It ends up being pretty weird seeing stuff get spammed on the right
- // While you go back to edit a line
+ // don't use completion autosuggestions. It ends up being pretty weird seeing stuff get spammed on the right
+ // while you go back to edit a line
const bool line_ends_with_space = iswspace(search_string.at(search_string.size() - 1));
const bool cursor_at_end = (this->cursor_pos == search_string.size());
if (line_ends_with_space && ! cursor_at_end)