Skip to content

Commit

Permalink
set max_methods = 1 for REPL methods (#48330)
Browse files Browse the repository at this point in the history
* set max_methods = 1 for REPL methods
  • Loading branch information
KristofferC authored Jan 23, 2023
1 parent 9f93b31 commit f8493c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/REPL/src/LineEdit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ function refresh_multi_line(termbuf::TerminalBuffer, terminal::UnixTerminal, buf
# Write out the prompt string
lindent = write_prompt(termbuf, prompt, hascolor(terminal))::Int
# Count the '\n' at the end of the line if the terminal emulator does (specific to DOS cmd prompt)
miscountnl = @static Sys.iswindows() ? (isa(Terminals.pipe_reader(terminal), Base.TTY) && !Base.ispty(Terminals.pipe_reader(terminal))) : false
miscountnl = @static Sys.iswindows() ? (isa(Terminals.pipe_reader(terminal), Base.TTY) && !(Base.ispty(Terminals.pipe_reader(terminal)))::Bool) : false

# Now go through the buffer line by line
seek(buf, 0)
Expand Down
1 change: 1 addition & 0 deletions stdlib/REPL/src/REPL.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Run Evaluate Print Loop (REPL)
module REPL

Base.Experimental.@optlevel 1
Base.Experimental.@max_methods 1

using Base.Meta, Sockets
import InteractiveUtils
Expand Down

0 comments on commit f8493c7

Please sign in to comment.