summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-09-26 23:00:37 (GMT)
committerGuido van Rossum <guido@python.org>1997-09-26 23:00:37 (GMT)
commitb6c935a933cc39ea23d867f2367b398efda7f064 (patch)
treeb36520d3d79708dd83f320b2429bfc8ab8c04662 /Modules
parent475296619309df6d437b6c6bdd33aea527e664cb (diff)
downloadcpython-b6c935a933cc39ea23d867f2367b398efda7f064.zip
cpython-b6c935a933cc39ea23d867f2367b398efda7f064.tar.gz
cpython-b6c935a933cc39ea23d867f2367b398efda7f064.tar.bz2
Set the completer's word break characters appropriate for Python.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/readline.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/readline.c b/Modules/readline.c
index 851378d..aef51ca 100644
--- a/Modules/readline.c
+++ b/Modules/readline.c
@@ -168,6 +168,10 @@ setup_readline()
rl_bind_key_in_map ('\033', rl_complete, emacs_meta_keymap);
/* Set our completion function */
rl_completion_entry_function = (Function *) on_completion;
+ /* Set Python word break characters */
+ rl_completer_word_break_characters =
+ " \t\n`~!@#$%^&*()-=+[{]}\\|;:'\",<>/?";
+ /* All nonalphanums except '.' */
/* Initialize (allows .inputrc to override) */
rl_initialize();
}