Skip to content

Commit d05044f

Browse files
committed
Merge.
2 parents ad6ceff + 0280871 commit d05044f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

bpython/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from ConfigParser import ConfigParser
55
from itertools import chain
66
from bpython.keys import cli_key_dispatch as key_dispatch
7-
from bpython.autocomplete import SUBSTRING
7+
from bpython.autocomplete import SIMPLE as default_completion
88

99
MAGIC_METHODS = ", ".join("__%s__" % s for s in [
1010
"init", "repr", "str", "lt", "le", "eq", "ne", "gt", "ge", "cmp", "hash",
@@ -56,7 +56,7 @@ def loadini(struct, configfile):
5656
'color_scheme': 'default',
5757
'complete_magic_methods' : True,
5858
'magic_methods' : MAGIC_METHODS,
59-
'autocomplete_mode': SUBSTRING,
59+
'autocomplete_mode': default_completion,
6060
'dedent_after': 1,
6161
'flush_output': True,
6262
'highlight_show_source': True,

doc/sphinx/source/configuration.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ autocomplete_mode
2525
There are three modes for autocomplete. simple, substring, and fuzzy.
2626
Simple matches methods with a common prefix, substring matches methods with a common
2727
subsequence, and fuzzy matches methods with common characters (default:
28-
substring).
28+
simple).
29+
30+
.. versionadded:: 0.12
2931

3032
syntax
3133
^^^^^^

0 commit comments

Comments
 (0)