We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ba2557 commit 1449247Copy full SHA for 1449247
1 file changed
Modules/readline.c
@@ -1406,8 +1406,7 @@ setup_readline(readlinestate *mod_state)
1406
/* All nonalphanums except '.' */
1407
1408
if (!completer_word_break_characters) {
1409
- RESTORE_LOCALE(saved_locale)
1410
- return -1;
+ goto error;
1411
}
1412
#ifdef WITH_EDITLINE
1413
// libedit uses rl_basic_word_break_characters instead of
@@ -1452,6 +1451,10 @@ setup_readline(readlinestate *mod_state)
1452
1451
1453
RESTORE_LOCALE(saved_locale)
1454
return 0;
+
1455
+error:
1456
+ RESTORE_LOCALE(saved_locale)
1457
+ return -1;
1458
1459
1460
/* Wrapper around GNU readline that handles signals differently. */
0 commit comments