From: Christian Heller Date: Thu, 29 Oct 2020 01:03:49 +0000 (+0100) Subject: Re-use old annotation when writing new one. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/static/%7B%7Bprefix%7D%7D/coming?a=commitdiff_plain;h=c28b4f2c784509f2b620e672b6ad0be06de12afc;p=plomrogue2-experiments Re-use old annotation when writing new one. --- 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() {