You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The returned region of the view.expand_to_scope(...) API introduced in ST 4130 will stop at phantom position.
Steps to reproduce
Start ST in safe mode
Open a new buffer
Set syntax to Python
Write string: "this is a string"
Create a phantom in the string:
# in ST console, for example, put a phantom "X" at position 4ps=sublime.PhantomSet(view, 'psKey'); ps.update([sublime.Phantom(sublime.Region(4, 4), "X", sublime.LAYOUT_INLINE)])
Run view.expand_to_scope(...)
# in ST consoleview.expand_to_scope(0, 'string')
The result is Region(0, 4), which means it stops at the phantom position.
Expected behavior
Region(0, 18)
Actual behavior
Region(0, 4)
Sublime Text build number
4131
Operating system & version
Win10 x64
The text was updated successfully, but these errors were encountered:
Description of the bug
The returned region of the
view.expand_to_scope(...)
API introduced in ST 4130 will stop at phantom position.Steps to reproduce
Python
"this is a string"
view.expand_to_scope(...)
Region(0, 4)
, which means it stops at the phantom position.Expected behavior
Region(0, 18)
Actual behavior
Region(0, 4)
Sublime Text build number
4131
Operating system & version
Win10 x64
The text was updated successfully, but these errors were encountered: