]> git.neil.brown.name Git - edlib.git/commitdiff
make: possibly fix problem with not always following.
authorNeilBrown <neil@brown.name>
Fri, 21 Jul 2023 02:33:24 +0000 (12:33 +1000)
committerNeilBrown <neil@brown.name>
Fri, 21 Jul 2023 02:33:24 +0000 (12:33 +1000)
This is just a guess, but maybe this is why make sometimes doesn't
follow the output properly.

Signed-off-by: NeilBrown <neil@brown.name>
DOC/TODO.md
python/lib-make.py

index 375b752ad9f1642e3080f19eba389db05f3bdb77..6001c3a1f4881ebd520a77d5ffb14ea985bc3470 100644 (file)
@@ -14,7 +14,7 @@ the file.
 - [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
 - [X] line-count in make output is weird.  Second line can be thousands
-- [ ] Make sometimes doesn't follow output, though usually it does
+- [X] Make sometimes doesn't follow output, though usually it does
 - [ ] If dynamic-complete only finds one completion, does it still want
       a menu?
 - [ ] When merge makes a change, highlight the new content.
index 7ff1de3d45d0d1568fb62895c27d3b0e5c88bd53..0c0115f510f7584a02c4871280c730f188275d4f 100644 (file)
@@ -563,6 +563,7 @@ class MakeViewerPane(edlib.Pane):
         edlib.Pane.__init__(self, focus)
         self.call("doc:request:doc:replaced")
         self.call("doc:request:make-set-match")
+        self.call("doc:request:make-close")
         self.may_follow = True
         # I think I want to start following, but if there are already matches,
         # I really want to go to one of those...  let's try this.
@@ -575,6 +576,12 @@ class MakeViewerPane(edlib.Pane):
         self.may_follow = (num == 1)
         return 1
 
+    def handle_make_close(self, key, **a):
+        "handle:make-close"
+        # A new doc, so I want to follow
+        self.may_follow = True
+        return 1
+
     def handle_enter(self, key, focus, mark, **a):
         "handle-list/K:Enter/K-o"
         dname = focus["doc-name"]