From 785d8d06d820988b4c2c89353724cc793a5fbda3 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Fri, 8 Sep 2023 15:46:32 +1000 Subject: [PATCH] renderline: don't try to parse <> in the prefix. Markup isn't allowed in the prefix, so don't try to parse it. This fixes a problem when the default for find-document ends <2>. Signed-off-by: NeilBrown --- DOC/TODO.md | 2 +- lib-renderline.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/DOC/TODO.md b/DOC/TODO.md index ecdcd66c..0b515397 100644 --- a/DOC/TODO.md +++ b/DOC/TODO.md @@ -9,7 +9,7 @@ the file. ### Triage -- [ ] find-document - if default doc has <>, displays wrongly. +- [X] find-document - if default doc has <>, displays wrongly. - [ ] From start-of-file move to end, then up, then down. Display jumps. Why? - [ ] Add menubar menu with recent documents? diff --git a/lib-renderline.c b/lib-renderline.c index 77876d22..c5108de0 100644 --- a/lib-renderline.c +++ b/lib-renderline.c @@ -1315,8 +1315,9 @@ DEF_CMD(renderline_set) if (!ci->str) return -Enoarg; if (prefix) - prefix = cvt(strconcat(ci->home, "", prefix, "")); - + prefix = strconcat(ci->home, ACK SOH "bold" STX, + prefix, // No mark in prefix! + ETX); if (prefix) rd->line = strconcat(NULL, prefix, ci->str); else -- 2.39.5