edit_command_buffer: remove dead code

This commit is contained in:
Johannes Altmanninger
2025-08-31 17:20:53 +02:00
parent 4abdc8716b
commit 90862c5c57

View File

@@ -1,17 +1,7 @@
function edit_command_buffer --description 'Edit the command buffer in an external editor'
set -l tmpdir (__fish_mktemp_relative -d fish)
or return 1
set -l f
if set -q tmpdir[1]
set f $tmpdir/command-line.fish
else
# We should never execute this block but better to be paranoid.
if set -q TMPDIR
set f $TMPDIR/fish.$fish_pid.fish
else
set f /tmp/fish.$fish_pid.fish
end
end
set -l f $tmpdir/command-line.fish
command touch $f
or return 1