commit ceeebd9f2e81e56893fe19e7e8cce5c7bee406c2 from: Lukas Henkel date: Thu Jun 02 18:15:10 2022 UTC Fix pressing enter while no completion is selected for comint modes This way, instead of just entering a newline, whatever is usually bound to RET is executed instead, so it's not printing a newline in a console or REPL. commit - 4ebc75642dcf10e244b33656dfe97a9d9182a737 commit + ceeebd9f2e81e56893fe19e7e8cce5c7bee406c2 blob - 9e37928863ce4fe3d2323de6fbac10f7475926b0 blob + 8cfc183de2b9d26c22eca7cb670cc3e7a23f10f6 --- init.el +++ init.el @@ -175,7 +175,7 @@ (let ((idx corfu--index)) (corfu-insert) (when (< idx 0) - (newline) + (funcall (key-binding (kbd "RET"))) (indent-according-to-mode)))) (lh/define-keys corfu-map