get multiple JSON messages working

This commit is contained in:
Kovid Goyal
2024-05-03 12:23:50 +05:30
parent 26837ed6a4
commit 3fa768d7ef
3 changed files with 15 additions and 3 deletions

View File

@@ -187,7 +187,7 @@ func (h *handler) initialize() {
h.rl = readline.New(h.lp, readline.RlInit{DontMarkPrompts: true, Prompt: "Family: "})
h.draw_screen()
go func() {
h.set_worker_error(json_decoder.Decode(&h.fonts))
h.set_worker_error(json_decode(&h.fonts))
h.lp.WakeupMainThread()
}()
}