From 6dd0013a5d7cc8adc035c0e9b0e8ba741108fd90 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sat, 16 Jun 2012 10:30:05 -0700 Subject: [PATCH] Fix for extra space in some completions Addresses https://github.com/fish-shell/fish-shell/issues/60 --- reader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reader.cpp b/reader.cpp index d23d8182e..62dacd15c 100644 --- a/reader.cpp +++ b/reader.cpp @@ -1089,7 +1089,7 @@ static void run_pager( const wcstring &prefix, int is_quoted, const std::vector< { prefix_esc = escape_string(prefix, 1); } - + wcstring cmd = format_string(L"fish_pager -c 3 -r 4 %ls -p %ls", // L"valgrind --track-fds=yes --log-file=pager.txt --leak-check=full ./fish_pager %d %ls", is_quoted?L"-q":L"", @@ -1607,7 +1607,7 @@ static int handle_completions( const std::vector &comp ) 0, 0 ); - len = &buff[data->buff_pos]-prefix_start+1; + len = &buff[data->buff_pos]-prefix_start; if( len <= PREFIX_MAX_LEN ) {