Skip to content

Commit

Permalink
Fix refresh_line too new to be called
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobjpeters committed Jan 3, 2025
1 parent cbfe844 commit 194ed4a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

# History

## v0.1.1

- Fix incorrect name of `install_speculator` in documentation

## v0.1.0

- `speculate`: Search for compilation directives
Expand Down
4 changes: 2 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

# News

## v0.1.1
## v0.1.2

- Fix incorrect name of `install_speculator` in documentation
- Fix [`refresh_line` too new to be called #5](https://github.com/jakobjpeters/Speculator.jl/issues/5)
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Speculator"
uuid = "ac92255e-d98e-45c4-b636-98964c1c8a8b"
authors = ["Jakob Peters <jakobj.peters@gmail.com>"]
version = "0.1.1"
version = "0.1.2"

[deps]
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
Expand Down
4 changes: 2 additions & 2 deletions src/utilities.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ function log_repl(f, background_repl::Bool)
mistate = active_repl.mistate

sleep(0.01)
refresh_line(mistate)
invokelatest(refresh_line, mistate)
print(stderr, "\r\33[K")
end

f()

background_repl && refresh_line(mistate)
background_repl && invokelatest(refresh_line, mistate)
nothing
end

Expand Down

0 comments on commit 194ed4a

Please sign in to comment.