Skip to content

Commit

Permalink
Merge pull request JuliaLang#6893 from mbauman/stable-repl-prompt
Browse files Browse the repository at this point in the history
Make prompts and i-searches the same word length
  • Loading branch information
StefanKarpinski committed May 20, 2014
2 parents 465edbf + fcf5761 commit 2bc0003
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion base/LineEdit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ function refresh_multi_line(termbuf::TerminalBuffer, s::SearchState)
write(buf, readall(s.response_buffer))
buf.ptr = offset + ptr - 1
s.response_buffer.ptr = ptr
s.ias = refresh_multi_line(termbuf, s.terminal, buf, s.ias, s.backward ? "(reverse-i-search)`" : "(i-search)`")
s.ias = refresh_multi_line(termbuf, s.terminal, buf, s.ias, s.backward ? "(reverse-i-search)`" : "(forward-i-search)`")
end

function refresh_multi_line(s::Union(SearchState,PromptState))
Expand Down
2 changes: 1 addition & 1 deletion base/REPL.jl
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ function setup_interface(d::REPLDisplay, req, rep; extra_repl_keymap = Dict{Any,
main_prompt.on_done = respond(Base.parse_input_line, d, main_prompt, req, rep)

# Setup help mode
help_mode = Prompt("help> ",
help_mode = Prompt(" help> ",
prompt_color = repl.help_color,
input_color = repl.input_color,
keymap_func_data = repl,
Expand Down

0 comments on commit 2bc0003

Please sign in to comment.