sources/interface.cpp

branch
experimental
changeset 39
052393cf9016
parent 38
80b26bc9707a
child 40
cf85b5f77541
--- 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;

mercurial