home · contact · privacy
Re-use old annotation when writing new one.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 29 Oct 2020 01:03:49 +0000 (02:03 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 29 Oct 2020 01:03:49 +0000 (02:03 +0100)
new2/rogue_chat_nocanvas_monochrome.html

index 7554e57ea82955e39cead0c594b30254ff1db688..ad654611d3249f68751e5163e46e903d96a8d3e4 100644 (file)
@@ -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() {