From 1db7c6233b82a2daf162df8a08786bc985c40eea Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sun, 13 Jan 2013 21:56:06 -0800 Subject: [PATCH] Fix for missing first character in completions --- reader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reader.cpp b/reader.cpp index 392dee140..05dd01a64 100644 --- a/reader.cpp +++ b/reader.cpp @@ -1648,7 +1648,7 @@ static bool handle_completions(const std::vector &comp) { // append just the end of the string prefix = wcstring(&ellipsis_char, 1); - prefix.append(data->command_line, prefix_start + len - PREFIX_MAX_LEN - 1, PREFIX_MAX_LEN); + prefix.append(data->command_line, prefix_start + len - PREFIX_MAX_LEN, PREFIX_MAX_LEN); } {