diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-05-07 17:31:24 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-05-07 17:31:24 -0700 |
commit | 0c79bb6e7c679552faba6cb333592eb1da26db35 (patch) | |
tree | 6eb08236422a8f31862f1d898d8fddcf08eb0b3c /reader.cpp | |
parent | 1a264ab7c20cbd0e20eef3e3d83fedb7b69c163d (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.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |