diff options
| author | Max Schillinger <max@mxsr.de> | 2023-10-28 09:53:47 +0200 |
|---|---|---|
| committer | Byron Torres <b@torresjrjr.com> | 2023-10-28 14:07:46 +0100 |
| commit | e7c7289358c23b2dfba0c692c608ef2119bc151d (patch) | |
| tree | 10e05e7e4cbfed0c27ff4784143c86ddd67a44c2 | |
| parent | add title to popup (diff) | |
| download | vim-haredoc-e7c7289358c23b2dfba0c692c608ef2119bc151d.tar.gz | |
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.
| -rw-r--r-- | plugin/haredoc.vim | 2 |
1 files changed, 1 insertions, 1 deletions
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, |
