Skip to content

Commit 2bc0003

Browse files
Merge pull request JuliaLang#6893 from mbauman/stable-repl-prompt
Make prompts and i-searches the same word length
2 parents 465edbf + fcf5761 commit 2bc0003

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

base/LineEdit.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,7 @@ function refresh_multi_line(termbuf::TerminalBuffer, s::SearchState)
885885
write(buf, readall(s.response_buffer))
886886
buf.ptr = offset + ptr - 1
887887
s.response_buffer.ptr = ptr
888-
s.ias = refresh_multi_line(termbuf, s.terminal, buf, s.ias, s.backward ? "(reverse-i-search)`" : "(i-search)`")
888+
s.ias = refresh_multi_line(termbuf, s.terminal, buf, s.ias, s.backward ? "(reverse-i-search)`" : "(forward-i-search)`")
889889
end
890890

891891
function refresh_multi_line(s::Union(SearchState,PromptState))

base/REPL.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ function setup_interface(d::REPLDisplay, req, rep; extra_repl_keymap = Dict{Any,
530530
main_prompt.on_done = respond(Base.parse_input_line, d, main_prompt, req, rep)
531531

532532
# Setup help mode
533-
help_mode = Prompt("help> ",
533+
help_mode = Prompt(" help> ",
534534
prompt_color = repl.help_color,
535535
input_color = repl.input_color,
536536
keymap_func_data = repl,

0 commit comments

Comments
 (0)