ref: 1fd6db6e7e149a05f1428f7b3240d891b9d35f3b
parent: 1d6a8e614f28ab7e8b8a386d4516b241b7757ef9
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Thu Dec 19 13:12:16 EST 2013
rio: dont consider shell characters as part of the filename for auto completion
rio looks backwards in the line for the beginning of a filename
that needs to be completed with ^F. this change makes the
characters: =, ^, ( and { stoppers, so filename completion
will work in all these cases:
foobar=/foo/ba^F; for(i in (fo^F ba^F)){/bin/baz^F
this means completion will not work for prefixes having these
special characters in them.
thanks to burnzez for bringing it up.
--- a/sys/src/cmd/rio/wind.c
+++ b/sys/src/cmd/rio/wind.c
@@ -476,7 +476,7 @@
q = q0;
while(q > 0){r = w->r[q-1];
- if(r<=' ')
+ if(r<=' ' || r=='=' || r=='^' || r=='(' || r=='{')break;
if(oneelement && r=='/')
break;
--
⑨