View Single Post
09-26-10, 03:09 AM   #18
Xubera
A Cobalt Mageweaver
 
Xubera's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 207
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
__________________
Chat Consolidate is the solution to any out of control trade chat. Ignore lines, throttle chat, consolidate posts!Follow the link to find out how!

▲ ▲ WoWInterface wont let me triforce >.>

Last edited by Xubera : 09-26-10 at 03:22 AM.
  Reply With Quote