From a8131aee9ecc640415903d590b15863ce1c99112 Mon Sep 17 00:00:00 2001 From: altermo <107814000+altermo@users.noreply.github.com> Date: Mon, 4 Mar 2024 12:08:23 +0100 Subject: fix(tohtml): replace hex escape with digit escape (#27728) --- runtime/lua/tohtml.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'runtime/lua/tohtml.lua') diff --git a/runtime/lua/tohtml.lua b/runtime/lua/tohtml.lua index 52e0742ef3..d15412edee 100644 --- a/runtime/lua/tohtml.lua +++ b/runtime/lua/tohtml.lua @@ -906,7 +906,9 @@ local function styletable_listchars(state) if listchars.nbsp then for _, match in - ipairs(vim.fn.matchbufline(state.bufnr, '\xe2\x80\xaf\\|\xa0', 1, '$') --[[@as (table[])]]) + ipairs( + vim.fn.matchbufline(state.bufnr, '\226\128\175\\|\194\160', 1, '$') --[[@as (table[])]] + ) do style_line_insert_overlay_char( state.style[match.lnum], -- cgit