On Thu, Jan 12, 2006 at 09:23:19AM +0000, Peter Stephenson wrote: > The completion system is a bit more quoting aware: it knows whether or > not it needs to insert a backslash before special characters because of > quotes earlier on the line. Ideally it should handle unprintable > characters at the same point where it tries to do that. That doesn't > need to be done at the same time, though. (I would hope it could be > done independently and prevent the equivalent code inside zle kicking > in.) The attached patch is an alternative to my older patch that changed stringaszleline(). This one changes add_match_data(), which means that it is happening early enough that zsh could be made to figure out how to insert the $'\123' sequences into single- or double-quoted strings (though it does not yet do this). This patch also fixes the updating glitch that I mentioned my last patch had. I think this would be good enough to include in the next release. It would at least make the completion of filenames with invalid charset sequences possible, which is better than the current truncating. Thoughts? One caveat about my renaming of "sl" to "stl": add_match_data() had two variables with the same name (one more deeply nested), so I changed the outer one (which holds the length of "str") to be "stl". ..wayne..