From 19cfd9b5d693b6e18d2c6e8f453158056d937bcc Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Thu, 9 Feb 2012 01:54:46 -0800 Subject: [PATCH] Fix for pager regression --- fish_pager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fish_pager.cpp b/fish_pager.cpp index 3881a7087..06273e751 100644 --- a/fish_pager.cpp +++ b/fish_pager.cpp @@ -943,7 +943,7 @@ static std::vector 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);