branch: master commit 4208a33eb39e5ddc53a1aae54c3149ce9be6a939 Author: rocky <ro...@gnu.org> Commit: rocky <ro...@gnu.org>
Fix logic for finding region to work on in tracking Possibly fixes issue #40. --- realgud/common/eval.el | 1 + realgud/common/track.el | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/copyright_exceptions b/copyright_exceptions new file mode 100644 index 0000000..e69de29 diff --git a/realgud/common/eval.el b/realgud/common/eval.el index 1ba52a4..67bedb4 100644 --- a/realgud/common/eval.el +++ b/realgud/common/eval.el @@ -73,6 +73,7 @@ This function must return nil if it doesn't handle EVENT." (set-marker (process-mark process) (point))) (setq comint-last-output-start (setq realgud-last-output-start (process-mark process))) + (realgud-track-mode-setup 't) (tooltip-show (realgud:eval-strip process output-str)) ) diff --git a/realgud/common/track.el b/realgud/common/track.el index eddc4be..1c40ba8 100644 --- a/realgud/common/track.el +++ b/realgud/common/track.el @@ -101,7 +101,7 @@ marks set in buffer-local variables to extract text" (cmdbuf-last-output-end (realgud-cmdbuf-info-last-input-end realgud-cmdbuf-info)) (last-output-end (process-mark curr-proc)) - (last-output-start (max comint-last-input-end + (last-output-start (max comint-last-input-start (- last-output-end realgud-track-char-range)))) ;; Sometimes we get called twice and the second time nothing ;; changes. Guard against this.