diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-06-16 10:30:05 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-06-16 10:30:05 -0700 |
commit | 6dd0013a5d7cc8adc035c0e9b0e8ba741108fd90 (patch) | |
tree | e2b4904a77c125889e584bc06ae9fc7379650374 /reader.cpp | |
parent | f2b5292bcba352e85d038b3862d540946c520b82 (diff) |
Fix for extra space in some completions
Diffstat (limited to 'reader.cpp')
-rw-r--r-- | reader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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<completion_t> &comp ) 0, 0 ); - len = &buff[data->buff_pos]-prefix_start+1; + len = &buff[data->buff_pos]-prefix_start; if( len <= PREFIX_MAX_LEN ) { |