Home Download Buy Blog Forum Support

Nested tab stops bug in snippets

Nested tab stops bug in snippets

Postby thunderpaw on Wed Nov 09, 2011 7:05 pm

Given the following snippet with nested tab stops:
Code: Select all
function ${1:fnName}(${2:${3:\$param1} = ${4:'value'}}) { ${5://code goes here} }


The nested tab stops work fine normally, but at tab stop 2, if I delete the selected content which includes tab stops 3 and 4, I have to press tab three times to get to tab stop 5, even though 3 and 4 have been deleted.

It's very awkward (and a bug in my view) that deleting a parent tab stop should also delete the child tab stops. If I hit delete at tab stop 2, the next tab key press should take me directly to 5, should it not?

edit: I'm using ST2 build 2139

TIA.
thunderpaw
 
Posts: 2
Joined: Wed Nov 09, 2011 6:56 pm

Re: Nested tab stops bug in snippets

Postby iamntz on Wed Nov 09, 2011 8:05 pm

I think is already posted here.
iamntz
 
Posts: 911
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Re: Nested tab stops bug in snippets

Postby thunderpaw on Wed Nov 09, 2011 11:34 pm

Thank you. I did a search, but apparently "tab-trigger" and "tab stop" aren't considered the same thing to the forum search engine. ;)
thunderpaw
 
Posts: 2
Joined: Wed Nov 09, 2011 6:56 pm


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 29 guests