branch: externals/coterm commit c52f413a18b4c83b49fc762a99e3ec5404640db8 Author: m <> Commit: m <>
Keep char mode in less after pressing a digit --- coterm.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coterm.el b/coterm.el index 07ea704..7c0cb1b 100644 --- a/coterm.el +++ b/coterm.el @@ -316,7 +316,7 @@ If point is not on process mark, leave `coterm-char-mode' and "Enter `coterm-char-mode' if a \"less\" prompt is detected. In addition, temporarily modify `coterm-auto-char-functions' such that char mode is maintained even if the user presses \"/\", -\":\", \"ESC\" or \"-\"." +\":\", \"ESC\", \"-\" or a digit." (when (and (eobp) (coterm--auto-char-less-prompt-1)) (unless coterm-char-mode (coterm-char-mode 1)) (unless coterm-scroll-snap-mode (coterm-scroll-snap-mode 1)) @@ -330,7 +330,7 @@ that char mode is maintained even if the user presses \"/\", (forward-line 0) (prog1 (looking-at (concat "\\(?: ESC\\| :\\|-\\)\\'\\|" - "Examine: \\|/")) + "Examine: \\|[/:]")) (goto-char (point-max)))) (rem-hook)))) (rem-hook ()