~torresjrjr/public-inbox

vim-haredoc: Strip away escape sequences in Neovim v1 SUPERSEDED

Max Schillinger: 1
 Strip away escape sequences in Neovim

 1 files changed, 2 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~torresjrjr/public-inbox/patches/46177/mbox | git am -3
Learn more about email & git

[PATCH vim-haredoc] Strip away escape sequences in Neovim Export this patch

---
 plugin/haredoc.vim | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/plugin/haredoc.vim b/plugin/haredoc.vim
index 3502184..b9299ce 100644
--- a/plugin/haredoc.vim
+++ b/plugin/haredoc.vim
@@ -76,6 +76,8 @@ function Haredoc(symbol)
		nnoremap <buffer> q  :close<CR>
		nnoremap <buffer> <nowait> u  <C-U>
		nnoremap <buffer> <nowait> d  <C-D>
	elseif has('nvim')
		execute '!haredoc "'..trim(symbol)..'" | sed -e "s/\x1b\[[0-9;]*m//g"'
	else
		execute '!haredoc '..symbol
	endif
-- 
2.42.0
Hi Max,