From c28b4f2c784509f2b620e672b6ad0be06de12afc Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Thu, 29 Oct 2020 02:03:49 +0100
Subject: [PATCH] Re-use old annotation when writing new one.

---
 new2/rogue_chat_nocanvas_monochrome.html | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/new2/rogue_chat_nocanvas_monochrome.html b/new2/rogue_chat_nocanvas_monochrome.html
index 7554e57..ad65461 100644
--- a/new2/rogue_chat_nocanvas_monochrome.html
+++ b/new2/rogue_chat_nocanvas_monochrome.html
@@ -190,6 +190,12 @@ let tui = {
     }
     this.mode = mode;
     this.empty_input();
+    if (mode == mode_annotate && explorer.position in explorer.info_db) {
+        let info = explorer.info_db[explorer.position];
+        if (info != "(none)") {
+            this.add_to_input(explorer.info_db[explorer.position]);
+        }
+    }
     this.full_refresh();
   },
   draw_mode_line: function() {
-- 
2.30.2