Skip to content

Commit 53af6e9

Browse files
committed
Remove binding revert functionality
1 parent 585cafa commit 53af6e9

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

scripts/hooks.sh

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -201,16 +201,7 @@ __resh_nop() {
201201
. ~/.resh/bindfunc.sh
202202

203203
__resh_bind_control_R() {
204-
bindfunc --revert '\C-r' __resh_widget_control_R_compat
205-
if [ "${__RESH_control_R_bind_enabled-0}" != 0 ]; then
206-
# Re-binding is a valid usecase but it shouldn't happen much
207-
# so this is a warning
208-
# echo "Re-binding RESH SEARCH app to Ctrl+R ..."
209-
else
210-
# Only save original binding if resh binding was not enabled
211-
__RESH_bindfunc_revert_control_R_bind=$_bindfunc_revert
212-
fi
213-
__RESH_control_R_bind_enabled=1
204+
bindfunc '\C-r' __resh_widget_control_R_compat
214205
if [ -n "${BASH_VERSION-}" ]; then
215206
# fuck bash
216207
bind '"\C-r": "\u[31~\u[32~"'

0 commit comments

Comments
 (0)