aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--plugin/haredoc.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/haredoc.vim b/plugin/haredoc.vim
index 6cbd507..2ab9695 100644
--- a/plugin/haredoc.vim
+++ b/plugin/haredoc.vim
@@ -35,9 +35,6 @@ function Haredoc(symbol)
endif
if popup && has('popupwin') && has('terminal')
- let minheight = 1 + system(
- \ "haredoc -Ftty '"..symbol.."' 2>&1 | wc -l"
- \ )
let buf = term_start(
\ [
\ 'sh', '-c',
@@ -45,6 +42,9 @@ function Haredoc(symbol)
\ ],
\ #{hidden: 1, term_finish: 'close'},
\ )
+ let minheight = 1 + system(
+ \ "haredoc -Ftty '"..symbol.."' 2>&1 | wc -l"
+ \ )
let winid = popup_atcursor(
\ buf,
\ #{