ref: 56300f72e8cd3d7c8dcf75173cb0234c22196c37
parent: 0866d65f8ea7d43329659cc22e38970541946ea3
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;
--
⑨