Remove $FZF_LISTEN_PORT

It is not worth the added complexity.
This commit is contained in:
Junegunn Choi 2022-12-27 22:12:06 +09:00
parent 4b3f0b9f08
commit 4dbe45640a
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627
2 changed files with 0 additions and 5 deletions

View File

@ -732,8 +732,6 @@ e.g.
# Send action to the server # Send action to the server
curl -XPOST localhost:6266 -d 'reload(seq 100)+change-prompt(hundred> )' curl -XPOST localhost:6266 -d 'reload(seq 100)+change-prompt(hundred> )'
\fR \fR
The port number is exported as \fB$FZF_LISTEN_PORT\fR on the child processes.
.TP .TP
.B "--version" .B "--version"
Display version information and exit Display version information and exit

View File

@ -2267,9 +2267,6 @@ func (t *Terminal) Loop() {
env = append(env, "FZF_PREVIEW_"+lines) env = append(env, "FZF_PREVIEW_"+lines)
env = append(env, columns) env = append(env, columns)
env = append(env, "FZF_PREVIEW_"+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 cmd.Env = env
} }