Hi,

there seems to be inconsistency in cmdline filename quoting.
Ctrl+Enter puts quoted name into command, but tab completion
does not quote filenames.

So, I think, insert_text() (complete.c) should call name_quote() too.


David
--- complete.c
+++ complete.c
@@ -786,6 +786,8 @@ static int start, end;
 
 static int insert_text (WInput *in, char *text, int len)
 {
+    text = name_quote (text, 1);
+
     len = min (len, strlen (text)) + start - end;
     if (strlen (in->buffer) + len >= in->current_max_len){
     /* Expand the buffer */
@@ -811,6 +813,8 @@ static int insert_text (WInput *in, char
 	update_input (in, 1);
 	end += len;
     }
+    g_free (text);
+
     return len != 0;
 }
 

Reply via email to