Sublime Forum

[BUG] Tab completion after table tag

#1

To reproduce (on Mac), type “table” + tab. The table open & close tags gets created. Without moving the cursor, hit 2 returns then move up so the cursor is in the middle like so:

[cursor here]

If you now type “tr” + tab, the

tag isn’t created as expected. If however you delete the letters “tr” then try it again, the tab completion does work this time around. Seems like a bug.
0 Likes

#2

Hi hcabbos,

I noticed the same bug but with a div-tag and a p-tag as a child - this seems to be reproducible with every html tag. My OS: Windows 7, Sublime Text V2. However, I had Ubuntu installed for a day and noticed that this bug doesn’t exist when using the Linux version of Sublime Text 2.

The bug can be described as follows:

Approach:

div [TAB] [ENTER] [CTRL+SHIFT+ENTER] lorem [TAB]

Expected:

<div>
Lorem ipsum...[CURSOR]
</div>

Result:

<div>

</div>[CURSOR]

Thanks in advance for dealing with a bugfix. :smile:

btw: You don’t have to delete the tag, just navigate to it once again and press tab.

0 Likes