diff options
author | 2012-02-09 01:54:46 -0800 | |
---|---|---|
committer | 2012-02-09 01:54:46 -0800 | |
commit | 19cfd9b5d693b6e18d2c6e8f453158056d937bcc (patch) | |
tree | d6011ea2f7ec97a2c984d70f6fc52470bdc1e7d0 | |
parent | 7e1b15a0cc9521f2f1ea72f5e3c54c33fb36aab4 (diff) |
Fix for pager regression
-rw-r--r-- | fish_pager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fish_pager.cpp b/fish_pager.cpp index 3881a708..06273e75 100644 --- a/fish_pager.cpp +++ b/fish_pager.cpp @@ -943,7 +943,7 @@ static std::vector<comp_t *> mangle_completions( wcstring_list_t &lst, const wch if( (c == COMPLETE_ITEM_SEP) || (c==COMPLETE_SEP) || !c) { - wcstring start2 = wcstring(start, end - start); + wcstring start2 = wcstring(next, start, end - start); wcstring str = escape_string(start2, ESCAPE_ALL | ESCAPE_NO_QUOTED); comp->comp_width += my_wcswidth( str.c_str() ); comp->comp.push_back(str); |