aboutsummaryrefslogtreecommitdiff
path: root/lib/todos.ml
diff options
context:
space:
mode:
authorMarc Coquand <marc@mccd.space>2024-05-29 09:56:45 -0500
committerMarc Coquand <marc@mccd.space>2024-05-29 09:56:45 -0500
commit41e598d5c92ac4687de4c3d700972ecf2096eb60 (patch)
treec07ad35c130430a381979801518eb54bd51d9d5f /lib/todos.ml
parent9ffd8422de06adab52c0b7873a6ce181d82b5391 (diff)
downloadstitch-0.0.8.tar.gz
stitch-0.0.8.tar.bz2
stitch-0.0.8.zip
Update todo and done to auto-updatev0.0.8
Diffstat (limited to 'lib/todos.ml')
-rw-r--r--lib/todos.ml8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/todos.ml b/lib/todos.ml
index 6c99e1c..89f84d7 100644
--- a/lib/todos.ml
+++ b/lib/todos.ml
@@ -228,7 +228,13 @@ let rec render
match Unix.wait () with
| _, _ ->
Common.Term.cursor t None;
- render t state
+ let content, content_pretty = load_todos ~hide_file_name () in
+ render
+ t
+ { state with
+ content = content |> Array.of_list
+ ; content_pretty = Array.of_list content_pretty
+ }
(* Capture resizing events *)
| exception Unix.Unix_error (Unix.EINTR, _, _) -> run_editor ()
| exception Unix.Unix_error (_, _, _) -> failwith "ERROR"