On Fri, 30 Nov 2018 at 01:34, Sebastian Gniazdowski wrote: > The output doesn't follow zsh_highlight replacements for start-code > and end-code and still emits raw codes. > > Could this be fixed? Turns out this doesn't involve near-color at all, only 256 color codes. The new standout-targeted test returns: -0m27m24mtr7mu27me word2 word3 +0m27m24m38;5;196mtr7m38;5;196mu27meCDE|39| word2 word3 Was testing: region highlight - standout overlapping on other region_highlight entry So again no CDE|3...|, but raw ^[38;5;196m. So this is a general Zsh bug, not near-color bug, as zsh/near-color module isn't loaded in this test, it's only the 256 code "fg=196" that is being used. The setting: zle_highlight=( fg_start_code:"CDE|3" fg_end_code:"|" bg_start_code:"BCDE|4" bg_end_code:"|" ) The file *-256.ztst.txt contains this test case. The file *-standout-only.ztst.txt is the expected test case which shows no problems with standout-overlaping other styles. PS. I now also do not remove 2xm codes (underline, standaout) but the test cases are all adapted to this change. -- Sebastian Gniazdowski News: https://twitter.com/ZdharmaI IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin Blog: http://zdharma.org