it doesn't highlight the match exactly when the terminal prompt has special char or signs
Closed this issue · 2 comments
case 1:
try to use ctrl-u to search URL, got the selected highlight shift 3 chars to right,
exapmle:
Ξ ~CM_CONF_DIR → curl http://www.google.com
2nd line
it suppose to match from http to com, however it match starting from p:// to 2nd in the next line
case 2:
same like above,
↑127 ~CM_CONF_DIR → echo http://www.google.com
2nd line
it matchs starting from p:// to 2nd
Hey, thank you for reporting.
This is due to somewhat shabby support for non-ASCII characters. I was also able to reproduce this in some occasions.
Patch for this is welcome.
Hi, this issue was fixed by @metcalfc in #66.
The problem was in using awk
because it appears it doesn't handle multi-byte characters well.
To fix the problem:
- install
gawk
(if you already don't have it) - upgrade to the latest plugin version
I was able to verify this is now fixed so I'll close this issue, but please try it out and let me know.