Skip to content

Commit

Permalink
Merge pull request #1662 from sakurawald/fix-fill-width-in-listener-mode
Browse files Browse the repository at this point in the history
fix: the *fill-width* option should not cause the prompt window in listener-mode out of window
  • Loading branch information
cxxxr authored Dec 1, 2024
2 parents 136788a + a89771b commit f97dee6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion extensions/lisp-mode/repl.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,8 @@
(defvar *lisp-repl-shortcuts* '())

(defmacro with-repl-prompt (() &body body)
`(let ((lem/prompt-window:*prompt-completion-window-shape* nil))
`(let ((lem/prompt-window:*prompt-completion-window-shape* nil)
(lem/prompt-window::*fill-width* nil))
,@body))

(defun repl-prompt-for-string (prompt &rest args)
Expand Down
2 changes: 1 addition & 1 deletion src/ext/listener-mode.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@
(*history-matched-string* nil)
(*listener-window* (current-window)))
(unwind-protect
(progn
(let ((lem/prompt-window::*fill-width* nil))
(prompt-for-string
"(reverse-i-search) "
:special-keymap *history-isearch-keymap*
Expand Down

0 comments on commit f97dee6

Please sign in to comment.