From 4dbe45640a46a67e2c46fcd0f6257e078b6817c1 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 27 Dec 2022 22:12:06 +0900 Subject: [PATCH] Remove $FZF_LISTEN_PORT It is not worth the added complexity. --- man/man1/fzf.1 | 2 -- src/terminal.go | 3 --- 2 files changed, 5 deletions(-) diff --git a/man/man1/fzf.1 b/man/man1/fzf.1 index 2661904..b6488bd 100644 --- a/man/man1/fzf.1 +++ b/man/man1/fzf.1 @@ -732,8 +732,6 @@ e.g. # Send action to the server curl -XPOST localhost:6266 -d 'reload(seq 100)+change-prompt(hundred> )' \fR - -The port number is exported as \fB$FZF_LISTEN_PORT\fR on the child processes. .TP .B "--version" Display version information and exit diff --git a/src/terminal.go b/src/terminal.go index 552daa2..68a099c 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -2267,9 +2267,6 @@ func (t *Terminal) Loop() { env = append(env, "FZF_PREVIEW_"+lines) env = append(env, columns) env = append(env, "FZF_PREVIEW_"+columns) - if t.listenPort > 0 { - env = append(env, fmt.Sprintf("FZF_LISTEN_PORT=%d", t.listenPort)) - } cmd.Env = env }