mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01:00
Remove unneccessary space for tab completion
This commit is contained in:
parent
bbf6f4fc25
commit
3ae8b92be6
@ -511,7 +511,7 @@ void ChatPrompt::nickCompletion(const std::list<std::string>& names, bool backwa
|
|||||||
{
|
{
|
||||||
std::wstring completion = narrow_to_wide(*i);
|
std::wstring completion = narrow_to_wide(*i);
|
||||||
if (prefix_start == 0)
|
if (prefix_start == 0)
|
||||||
completion += L":";
|
completion += L": ";
|
||||||
completions.push_back(completion);
|
completions.push_back(completion);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -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))
|
if (word_end < m_line.size() && isspace(word_end))
|
||||||
++word_end;
|
++word_end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user