mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-02 22:21:15 -03:00
Stop printing extra newline when Alt-W or Alt-L is used with a multiline prompt
When we want to print something while the prompt is still active, we move the
cursor by printing a newline for each line in the prompt beyond the first
one. As established by 80fe0a7fc (fish_job_summary: Format message better
for multiline prompts, 2022-06-28), our use of "string repeat" actually
prints an extra newline. Let's remove it here as well.
This commit is contained in:
@@ -28,7 +28,7 @@ function __fish_whatis_current_token -d "Show man page entries or function descr
|
||||
|
||||
printf "%s\n" $desc
|
||||
|
||||
string repeat \n --count=(math (count (fish_prompt)) - 1)
|
||||
string repeat -N \n --count=(math (count (fish_prompt)) - 1)
|
||||
|
||||
commandline -f repaint
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user