From 706091ac85d10eb724ce51b45cab33e7a08ae87f Mon Sep 17 00:00:00 2001 From: Byron Torres Date: Sat, 28 Oct 2023 14:04:38 +0100 Subject: fix: strip null from system output --- plugin/haredoc.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/haredoc.vim b/plugin/haredoc.vim index ac69248..3502184 100644 --- a/plugin/haredoc.vim +++ b/plugin/haredoc.vim @@ -27,7 +27,7 @@ function Haredoc(symbol) print $1 "::" "{base}" }}' {expand("%")} 2>&- CMD - let joined_symbol = system(join(resolvecmd)) + let joined_symbol = system(join(resolvecmd))[:-2] if len(joined_symbol) != 0 let symbol = joined_symbol endif -- cgit v1.2.3