File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -397,6 +397,8 @@ def only_whitespace_left_of_cursor():
397
397
if not self .config .auto_display_list and not self .list_win_visible :
398
398
return True #TODO why?
399
399
cw = self .current_string () or self .current_word
400
+ logging .debug ('current string: %r' , self .current_string ())
401
+ logging .debug ('current word: %r' , self .current_word )
400
402
if not cw :
401
403
return
402
404
@@ -628,19 +630,19 @@ def lines_for_display(self):
628
630
@property
629
631
def current_word (self ):
630
632
"""Returns the "current word", based on what's directly left of the cursor.
631
- examples inclue "socket.socket.metho" or "self.reco" or "yiel"
633
+ examples inclue "socket.socket.metho" or "self.reco" or "yiel"
632
634
633
635
cw() is currently an alias, but cw() is used by bpyton.repl.Repl
634
636
so must match its definition of current word - changing how it behaves
635
637
has many repercussions.
636
638
"""
637
-
639
+
638
640
start , end , word = self ._get_current_word ()
639
641
return word
640
642
641
643
def _get_current_word (self ):
642
644
pos = self .cursor_offset_in_line
643
-
645
+
644
646
matches = list (re .finditer (r'[\w_][\w0-9._]*[(]?' , self ._current_line ))
645
647
start = pos
646
648
end = pos
You can’t perform that action at this time.
0 commit comments