summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2013-12-19 18:12:16 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2013-12-19 18:12:16 +0100
commit56300f72e8cd3d7c8dcf75173cb0234c22196c37 (patch)
tree63bb157f0366a2d97589e7695317d800769240f1
parent0866d65f8ea7d43329659cc22e38970541946ea3 (diff)
downloadplan9front-56300f72e8cd3d7c8dcf75173cb0234c22196c37.tar.xz
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.
-rw-r--r--sys/src/cmd/rio/wind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/rio/wind.c b/sys/src/cmd/rio/wind.c
index 97e494ea3..429390a28 100644
--- a/sys/src/cmd/rio/wind.c
+++ b/sys/src/cmd/rio/wind.c
@@ -476,7 +476,7 @@ windfilewidth(Window *w, uint q0, int oneelement)
q = q0;
while(q > 0){
r = w->r[q-1];
- if(r<=' ')
+ if(r<=' ' || r=='=' || r=='^' || r=='(' || r=='{')
break;
if(oneelement && r=='/')
break;