Home Download Buy Blog Forum Support

Potential Bug: Sublime too aggressively deletes extra spaces

Potential Bug: Sublime too aggressively deletes extra spaces

Postby ajpalkovic on Thu Feb 09, 2012 6:44 pm

If I have this code and a 2 space indent in javascript:
[space]while(x[space]<[space][space][cursor]42) {};

If I press backspace, sublime will delete both spaces. This might make sense at the end or beginning of a line, but does it make sense in the middle of a line? Perhaps it does, but I find it annoying more often than not. Also, it looks like this depends on the tab size as well. For instance, if the above code is indented 0 or 2 spaces, you won't see the problem. This probably also means it is a bug.
ajpalkovic
 
Posts: 142
Joined: Fri Jun 10, 2011 10:21 pm

Re: Potential Bug: Sublime too aggressively deletes extra spaces

Postby jps on Fri Feb 10, 2012 9:02 am

The use_tab_stops setting controls this
jps
Site Admin
 
Posts: 3077
Joined: Wed Mar 19, 2008 12:33 pm

Re: Potential Bug: Sublime too aggressively deletes extra spaces

Postby ajpalkovic on Fri Feb 10, 2012 5:44 pm

Sorry, I should have looked for that first. It's still a little weird that it does the same _in the middle of the line_. The idea I think is so that soft tabs can behave like normal tabs, but how many people are really going to have a tab in the middle of a line? Even with that setting on, it seems weird that it would behave that way in the middle of a line.
ajpalkovic
 
Posts: 142
Joined: Fri Jun 10, 2011 10:21 pm


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 12 guests