aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorByron Torres <b@torresjrjr.com>2023-10-28 14:04:38 +0100
committerByron Torres <b@torresjrjr.com>2023-10-28 14:20:54 +0100
commit706091ac85d10eb724ce51b45cab33e7a08ae87f (patch)
treeb454e972758204c2492250480f941d3c10cfa0b4
parentfix: unset $LESS for popup windows (diff)
downloadvim-haredoc-706091ac85d10eb724ce51b45cab33e7a08ae87f.tar.gz
fix: strip null from system output
-rw-r--r--plugin/haredoc.vim2
1 files changed, 1 insertions, 1 deletions
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