Skip to content

Commit f8493c7

Browse files
authored
set max_methods = 1 for REPL methods (JuliaLang#48330)
* set max_methods = 1 for REPL methods
1 parent 9f93b31 commit f8493c7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

stdlib/REPL/src/LineEdit.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ function refresh_multi_line(termbuf::TerminalBuffer, terminal::UnixTerminal, buf
452452
# Write out the prompt string
453453
lindent = write_prompt(termbuf, prompt, hascolor(terminal))::Int
454454
# Count the '\n' at the end of the line if the terminal emulator does (specific to DOS cmd prompt)
455-
miscountnl = @static Sys.iswindows() ? (isa(Terminals.pipe_reader(terminal), Base.TTY) && !Base.ispty(Terminals.pipe_reader(terminal))) : false
455+
miscountnl = @static Sys.iswindows() ? (isa(Terminals.pipe_reader(terminal), Base.TTY) && !(Base.ispty(Terminals.pipe_reader(terminal)))::Bool) : false
456456

457457
# Now go through the buffer line by line
458458
seek(buf, 0)

stdlib/REPL/src/REPL.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Run Evaluate Print Loop (REPL)
1414
module REPL
1515

1616
Base.Experimental.@optlevel 1
17+
Base.Experimental.@max_methods 1
1718

1819
using Base.Meta, Sockets
1920
import InteractiveUtils

0 commit comments

Comments
 (0)