diff options
author | Daniel Llorens <lloda@sarc.name> | 2021-06-02 10:48:53 +0200 |
---|---|---|
committer | Daniel Llorens <lloda@sarc.name> | 2021-06-02 10:48:53 +0200 |
commit | 118ee0c50ba90ea7ad7ff1fd2a212bbbb7a66d99 (patch) | |
tree | e5b1db220c3e013ab00f1f2a04203a1c4467ea2d /guile-readline/readline.c | |
parent | c1fd55d1747880ff2ea822e88a1c41482181cb49 (diff) | |
download | guile-118ee0c50ba90ea7ad7ff1fd2a212bbbb7a66d99.tar.gz |
Fix else in init_bouncing_parens()
Diffstat (limited to 'guile-readline/readline.c')
-rw-r--r-- | guile-readline/readline.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/guile-readline/readline.c b/guile-readline/readline.c index 408ca55d7..2dc8f08e6 100644 --- a/guile-readline/readline.c +++ b/guile-readline/readline.c @@ -433,12 +433,14 @@ init_bouncing_parens () { Keymap km = rl_get_keymap (); if (km) - if (strncmp (rl_get_keymap_name (km), "vi", 2)) - { - rl_bind_key (')', match_paren); - rl_bind_key (']', match_paren); - rl_bind_key ('}', match_paren); - } + { + if (strncmp (rl_get_keymap_name (km), "vi", 2)) + { + rl_bind_key (')', match_paren); + rl_bind_key (']', match_paren); + rl_bind_key ('}', match_paren); + } + } else scm_error (scm_misc_error_key, "", "readline has not been properly initialized", SCM_EOL, SCM_EOL); |