Sublime Forum

Phantoms with multi-line Regions

#1

Is it expected behavior that when you add a Phantom with a region that spans multiple lines, that the LAYOUT_BELOW mode places the Phantom under the first line of the region? I would expect it to be placed below the entire region (below the last line).

Example:

2 Likes

#2

That’s not the behaviour I’d expect indeed (so +1) , but it’s pretty easy to fix:

phantom_region = sublime.Region(my_region.end())
0 Likes