mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 11:21:15 -03:00
Fix PROMPT_SP hack regression
Commit fbad0ab50a (reset_abandoning_line: remove redundant
allocations, 2025-11-13) uses byte count of ⏎ (3) instead of char
count (1), thus overestimating the number of spaces this symbol takes.
Fixes #12246
This commit is contained in:
10
tests/checks/tmux-omitted-newline.fish
Normal file
10
tests/checks/tmux-omitted-newline.fish
Normal file
@@ -0,0 +1,10 @@
|
||||
#RUN: %fish %s
|
||||
#REQUIRES: command -v tmux
|
||||
|
||||
isolated-tmux-start
|
||||
isolated-tmux send-keys "echo -n 12" Enter
|
||||
tmux-sleep
|
||||
isolated-tmux capture-pane -p
|
||||
# CHECK: prompt 0> echo -n 12
|
||||
# CHECK: 12{{\u23CE|\^J|\u00b6|}}
|
||||
# CHECK: prompt 1>
|
||||
Reference in New Issue
Block a user