Sublime Forum

Visual bug with phantom right below folded region

#1

I’m getting overlapping lines and line-numbers when a build error phantom appears right below a folded region.

0 Likes

#2

are you still experiencing this in build 3120? if so, can you share a simple example/steps to replicate it please? :slight_smile:

0 Likes

#3

Nevermind, I’ve managed it:

Create a new tab, paste in the following:

def test():
    print('wow')
    print('hello')

test()

put the cursor after hello').

in the console:

view.add_phantom("test", view.sel()[0], "Hello, World!", sublime.LAYOUT_INLINE)

click the folding arrow on line 1 to collapse it, and ensure the caret is not on line 4:

line 4 in the gutter shows the number 3 underneath the 4.

tested in Windows on build 3120. CC @jps

1 Like

#4

this bug doesn’t exist in 3125 :slight_smile:

1 Like

#5

This was fixed in 3121, if I recall correctly

2 Likes