From: NeilBrown Date: Fri, 21 Jul 2023 02:17:46 +0000 (+1000) Subject: doc-test: doc:clear must send doc:replaced X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=edd5f1e4e12fcbde9169149a8ed51db51251159e;p=edlib.git doc-test: doc:clear must send doc:replaced Without this, linecount gets badly confused. Signed-off-by: NeilBrown --- 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; }