On 2011-02-28 20:31, Saiwing Yeung wrote:
I have a weird problem in which the caret moved in an unexpected way. Let's say I have
test<caret>\n
and type command-], it becomes
<tab>tes<caret>t\n
I'm also seeing the behavior you describe. Funny, I never noticed it before... I think that's because I use ⌘] and ⌘[ almost exclusively to move multiple lines at a time. If I want to indent/outdent a single line I just go to the beginning of the line and insert/remove a tab.
Which suggests a solution. Maybe create a macro to select the line before moving it? It's not ideal, but it may be better than having the caret end up in an unexpected position.
FWIW, I think you're correct that it has something to do with using a single character (tab) to represent more than a single character width. The behavior changes somewhat if you use soft tabs.