--- a/sources/interface.cpp Mon Dec 15 10:31:52 2014 +0200 +++ b/sources/interface.cpp Mon Dec 15 10:51:56 2014 +0200 @@ -945,12 +945,15 @@ // ------------------------------------------------------------------------------------------------- // FUNCTION -Interface::tab_complete (const String& part, const String& complete) -> void +Interface::tab_complete (const String& part, String complete) -> void { String& input = mutable_current_input(); if (input.starts_with (part)) { + if (input[part.length()] != ' ') + complete += ' '; + input.replace (0, part.length(), complete); g_cursor = complete.length(); g_needInputRender = true;