Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug in url-quote-magic?



On Jun 12,  6:10pm, Ulrich Dangel wrote:
}
} while using url-quote-magic i discoverd a strange behaviour.
} If i enter an url, followed by space, and after that a semicolon, the
} semicolon is escaped.

I can see where this might be unexpected, but I'm not sure your fix is
the right one.  I think it might be preferable to change line 117 so
that the trailing space is preserved, i.e., so that it can tell that
the last word on the line is no longer the one that looks like a URL.

            words=("${(@Q)${(q)=LBUFFER}}") # 117: Not quite right

I haven't worked out how to do this yet and don't have time to this
morning, I'm afraid.



Messages sorted by: Reverse Date, Date, Thread, Author