~torresjrjr/public-inbox

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH vim-haredoc] Reset LESS for popup windows

Details
Message ID
<20231028075346.7705-2-max@mxsr.de>
DKIM signature
missing
Download raw message
Patch: +1 -1
Otherwise the popup window might close immediately if LESS contains an F
---
 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,
-- 
2.42.0
Details
Message ID
<CWK3ZKAQBP76.11S0DZ5JM81WS@torresjrjr.com>
In-Reply-To
<20231028075346.7705-2-max@mxsr.de> (view parent)
DKIM signature
missing
Download raw message
On Sat Oct 28, 2023 at 8:53 AM BST, Max Schillinger wrote:
> Otherwise the popup window might close immediately if LESS contains an F
> ---
>  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,

Applied to master, with some changes to the commit message.

To git.sr.ht:~torresjrjr/vim-haredoc
   72d5909..179c408  master -> master
Reply to thread Export thread (mbox)