File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -790,19 +790,23 @@ function edit_insert(s::PromptState, c::StringLike)
790
790
offset = s. ias. curs_row == 1 || s. indent < 0 ?
791
791
sizeof (prompt_string (s. p. prompt):: String ) : s. indent
792
792
offset += position (buf) - beginofline (buf) # size of current line
793
+ spinner = true
793
794
if offset + textwidth (str) <= w
794
795
# Avoid full update when appending characters to the end
795
796
# and an update of curs_row isn't necessary (conservatively estimated)
796
797
write (termbuf, str)
798
+ spinner = false
797
799
elseif after == 0
798
800
refresh_line (s)
799
801
delayup = false
800
802
else
801
803
delayup = true
802
804
end
803
805
if delayup
804
- write (termbuf, spin_seq[mod1 (position (buf) - w, length (spin_seq))])
805
- cmove_left (termbuf)
806
+ if spinner
807
+ write (termbuf, spin_seq[mod1 (position (buf) - w, length (spin_seq))])
808
+ cmove_left (termbuf)
809
+ end
806
810
s. refresh_wait = Timer (after) do t
807
811
s. refresh_wait === t || return
808
812
s. refresh_wait = nothing
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ Options(;
46
46
auto_indent_tmp_off = false ,
47
47
auto_indent_bracketed_paste = false ,
48
48
auto_indent_time_threshold = 0.005 ,
49
- auto_refresh_time_delay = 0.05 ,
49
+ auto_refresh_time_delay = Sys . iswindows () ? 0.05 : 0.0 ,
50
50
iocontext = Dict {Symbol,Any} ()) =
51
51
Options (hascolor, extra_keymap, tabwidth,
52
52
kill_ring_max, region_animation_duration,
You can’t perform that action at this time.
0 commit comments