well lets just say this
Code:
function myAddonFrame_OnEvent(self, event, ...)
print(event,...)
if event == "ACTIONBAR_SHOWGRID" then
someFunc()
elseif event == "ACTIONBAR_HIDEGRID" then
otherFunc()
end
end
in this example, the first print command is about 4 spaces as its indention, my normal coding habit is to double tap the enter key, to give that space between the print and if statements.
right now what im experimenting in the IDE is if i type like this
Code:
function myAddonFrame_OnEvent(self, event, ...)
print(event,...)
if event == "ACTIONBAR_SHOWGRID" then
someFunc()
elseif event == "ACTIONBAR_HIDEGRID" then
otherFunc()
end
end
it works fine, but if i type like in the first code box, i will have to reapply the 4 spaces.
for further attempts at clarification, say my cursor is on row 2 column 4 and I hit enter, my cursor is in row 3 column 4. now if I hit enter again without typing anything, im in row 4 column 1. so now to keep the same indention, i have to Tab or space out to get to row 4 column 4.
EDIT:: ---
Actually, ive been noticing now, alot of the times it works as expected, and only occasionally does it do as I am describing above... probably user error