IDE editor tab spacing inconsistant and wrong.

I am using IDE version 1.0.2 in Ubuntu 12.04.
I have edited the preferences.txt file (when IDE is not running) to set the tab spacing to 4. The below displays how the tab spacing in the editor is inconsistent.

Below is the code snippet I used to display the problem.

// in preferences.txt with tab spacing set at 4 the below are results
// when tabbing out to comment slashes
void doDisplay()        // correct tab spacing here
// 4567890123456789012345678901234567890 line char. number
    // one tab gives correct spacing
                    // still correct
{    // OOPS! tab spacing wrong! seems changed to 5
//    x    x    x    x    x    incorrect tab spacing
// 4567890123456789012345678901234567890
    // but jumps back to 4 if tabbing from column 1
;    //    tabbing after first character; tabs jump back to 5
// 4567890123456789012345678901234567890
    // tabs jump back to 4
      //    ...if first 2 characters spaces tabs jump back to 5
// 4567890123456789012345678901234567890
// it seems if there is a first character the tabs count increments
///    x    x    x tabs have jumped back to 4 but based on col. 3
}
void setup()
{;}
void loop()    // Tabs incorrect here
// 4567890123456789012345678901234567890
{;}    //    Tabs bad again