From e7c7289358c23b2dfba0c692c608ef2119bc151d Mon Sep 17 00:00:00 2001 From: Max Schillinger Date: Sat, 28 Oct 2023 09:53:47 +0200 Subject: fix: unset $LESS for popup windows Otherwise, less(1), if given the -F or --quit-if-one-screen flags via the $LESS environment variable, closes the popup window immediately. --- plugin/haredoc.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/haredoc.vim b/plugin/haredoc.vim index e65b389..ac69248 100644 --- a/plugin/haredoc.vim +++ b/plugin/haredoc.vim @@ -38,7 +38,7 @@ function Haredoc(symbol) let buf = term_start( \ [ \ 'sh', '-c', - \ "haredoc -Ftty '"..symbol.."' | less -RKX", + \ "haredoc -Ftty '"..symbol.."' | LESS= less -RKX", \ ], \ #{ \ term_name: '[haredoc] '..symbol, -- cgit v1.2.3