fix: rebind readline command redraw-current-line #4635
+4
−4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Rebind
redraw-current-linereadline command from "\er" (ALT-R)The custom key bind in /shell/key-bindings.bash overrides the default readline keybinding of
"\er": revert-line, causing undocumented changes in readline command keybindings.Solution: Bind
redraw-current-lineto "\eR" (SHIFT-ALT-R)Attempting to manually rebind "\er" to
revert-linein ~/.inputrc introduces unexpected behavior in the ALT_C operation of fzf, resulting in an emptycompletereadline command after the builtin cd, filling the terminal screen with all possible binary executables in the user's$PATH. This keybinding in the__fzf_cd__function is used only internally and is not explicitly documented or exposed to fzf users. Using "\eR" rather than "\er" eliminates an unnecessary and undocumented default readline keybinding override that may confound users troubleshooting readline command keybindings.Closes: #4634
Tests
make testmake itest(verbose detail of skipped test)