Skip to content

Commit 3b8049e

Browse files
committedSep 14, 2014
Allow motion on '.' while completing correctly
fix #29
1 parent e92a9a9 commit 3b8049e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed
 

‎lib/pry-coolline/wrapper.rb

+6-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,12 @@ def bond_adapter
2424
# @return [Coolline]
2525
def make_coolline
2626
Coolline.new do |cool|
27-
cool.word_boundaries = [" ", "\t", ",", ";", '"', "'", "`", "<", ">",
28-
"=", ";", "|", "{", "}", "(", ")", "-"]
27+
cool.completion_word_boundaries =
28+
[" ", "\t", ",", ";", '"', "'", "`", "<", ">",
29+
"=", ";", "|", "{", "}", "(", ")", "-"]
30+
31+
cool.word_boundaries = cool.completion_word_boundaries +
32+
[".", ":"]
2933

3034
# bring saved history into coolline
3135
cool.history_file = File.expand_path(Pry.config.history.file)

0 commit comments

Comments
 (0)
Please sign in to comment.