From edd5f1e4e12fcbde9169149a8ed51db51251159e Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Fri, 21 Jul 2023 12:17:46 +1000 Subject: [PATCH] doc-test: doc:clear must send doc:replaced Without this, linecount gets badly confused. Signed-off-by: NeilBrown --- DOC/TODO.md | 2 +- doc-text.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/DOC/TODO.md b/DOC/TODO.md index c3012806..375b752a 100644 --- a/DOC/TODO.md +++ b/DOC/TODO.md @@ -13,7 +13,7 @@ the file. cursor gets positioned outside the window - [X] when find-file dialog shifts left, it doesn't shift back until cursor is v.close to left, even when the rest of the line is blank -- [ ] line-count in make output is weird. Second line can be thousands +- [X] line-count in make output is weird. Second line can be thousands - [ ] Make sometimes doesn't follow output, though usually it does - [ ] If dynamic-complete only finds one completion, does it still want a menu? diff --git a/doc-text.c b/doc-text.c index 826a947a..6ebcd2f0 100644 --- a/doc-text.c +++ b/doc-text.c @@ -2539,6 +2539,7 @@ DEF_CMD(text_clear) m->ref.c = NULL; m->ref.o = 0; } + pane_notify("doc:replaced", ci->home); return 1; } -- 2.39.5