From 232c03e1151caf99c2d2f67e1e66fca9bb8618cb Mon Sep 17 00:00:00 2001 From: Rafael Fourquet Date: Thu, 24 Aug 2017 18:35:57 +0200 Subject: [PATCH] use trylock in refresh_multi_line --- base/repl/LineEdit.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/repl/LineEdit.jl b/base/repl/LineEdit.jl index e6d737bbe3bcd..fad55e0d88d1f 100644 --- a/base/repl/LineEdit.jl +++ b/base/repl/LineEdit.jl @@ -235,7 +235,7 @@ refresh_multi_line(s::ModeState) = refresh_multi_line(terminal(s), s) refresh_multi_line(termbuf::TerminalBuffer, s::ModeState) = refresh_multi_line(termbuf, terminal(s), s) refresh_multi_line(termbuf::TerminalBuffer, term, s::ModeState) = (@assert term == terminal(s); refresh_multi_line(termbuf,s)) function refresh_multi_line(termbuf::TerminalBuffer, terminal::UnixTerminal, buf, state::InputAreaState, prompt = ""; indent = 0) - lock(REFRESH_LOCK) + while !trylock(REFRESH_LOCK) sleep(.01) end _clear_input_area(termbuf, state) cols = width(terminal)