Skip to content

Commit

Permalink
Remove unneccessary space for tab completion
Browse files Browse the repository at this point in the history
  • Loading branch information
nolsen42 authored and est31 committed Jun 16, 2015
1 parent bbf6f4f commit 3ae8b92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chat.cpp
Expand Up @@ -511,7 +511,7 @@ void ChatPrompt::nickCompletion(const std::list<std::string>& names, bool backwa
{
std::wstring completion = narrow_to_wide(*i);
if (prefix_start == 0)
completion += L":";
completion += L": ";
completions.push_back(completion);
}
}
Expand Down Expand Up @@ -541,7 +541,7 @@ void ChatPrompt::nickCompletion(const std::list<std::string>& names, bool backwa
}
}
}
std::wstring replacement = completions[replacement_index] + L" ";
std::wstring replacement = completions[replacement_index];
if (word_end < m_line.size() && isspace(word_end))
++word_end;

Expand Down

0 comments on commit 3ae8b92

Please sign in to comment.