This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 122175 - Inccrect indents on initially selected editor tab
Summary: Inccrect indents on initially selected editor tab
Status: RESOLVED DUPLICATE of bug 121784
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-16 19:03 UTC by mclaassen
Modified: 2007-11-19 18:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mclaassen 2007-11-16 19:03:52 UTC
I use 
* expand tabs to spaces = false
* tab size = 2

* jdk 6 update 1

When I open RC1, it remembers my last selected tab like it should, but that tab displays tabs at 8 spaces  instead of
just 2.  All other tabs display correctly and switch between tabs does not cause this tab to fix itself.  Everything in
this tab works exactly as I would expect, if I had chosen a tab size of 8.  (Editing, scrolling, ...)  However, as I
chose a tab size of 2.

Reformatting the code also does not change the tab size.

If I go to tools->options and then immediately press cancel, the tab repaints where it needs to (behind where the
options dialog was) with a tab size of 2.  This causes artifacts, but scrolling around enough at this point will
eventually fix the repaint issues.  And now everything works exactly as I would expect, with a tab size of 2.

All other tabs appear to be unaffected.

Work arounds (that all are a bit annoying)
1) After restarting netbeans, always close the initial tab and then re-open it
2) Live with the huge tab size
3) After restarting netbeans, always open and the cancel the options dialog
4) Show the "Start Page" page on startup (however closing the start page does not put me on my last used tab from the
previous session, making this option less tenable)
Comment 1 Jana Maleckova 2007-11-19 15:48:11 UTC
reassign to editor for evalueation
Comment 2 Jiri Prox 2007-11-19 18:18:07 UTC
this is duplicate of issue 121784. Thanks for your report

*** This issue has been marked as a duplicate of 121784 ***