From 56300f72e8cd3d7c8dcf75173cb0234c22196c37 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Thu, 19 Dec 2013 18:12:16 +0100 Subject: [PATCH] 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. --- sys/src/cmd/rio/wind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;