-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
Description of the problem or steps to reproduce
In a plugin, add this code:
local time = import("time")
-- somewhere in init function
time.AfterFunc(time.ParseDuration("2s"), function()
micro.InfoBar():Message("I'm alive")
end)
After 2s, the info bar is modified, but it's not visible, until you move the cursor or press a key.
This is likely due to the callback function being called out of the usual drawing code (thread?), so the screen.Redraw() in the InfoBar:Message is lost.
Ideally, it could be solved in go so the lua code doesn't have to deal with this or a new command could be added to force refreshing the screen from the main ui thread and we would have to call this from lua.
I don't know about the internal of micro enough to fix it.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels