My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 825: Different tab size in side-by-side view
22 people starred this issue and may be notified of changes. Back to list
Status:  Accepted
Owner:  ----


Sign in to add a comment
 
Reported by nereu...@gmail.com, Jan 17, 2011
Affected Version:
2.1.5

What steps will reproduce the problem?
1. Open side-by-side view with some code that is using tab in the code
2. Set Tab with 4
3. Turn on Syntax Coloring and Show Tabs

What is the expected output? What do you see instead?

It should show as following.

150	#define DW_EH_PE_absptr     0x00
151	#define DW_EH_PE_omit       0xff
152	#define DW_EH_PE_uleb128    0x01
153	#define DW_EH_PE_udata2     0x02
154	#define DW_EH_PE_udata4     0x03
155	#define DW_EH_PE_udata8     0x04
156	#define DW_EH_PE_sleb128    0x09
157	#define DW_EH_PE_sdata2     0x0a
158	#define DW_EH_PE_sdata4     0x0b
159	#define DW_EH_PE_sdata8     0x0c
160	#define DW_EH_PE_signed     0x08
161	#define DW_EH_PE_pcrel      0x10
162	#define DW_EH_PE_textrel    0x20
163	#define DW_EH_PE_datarel    0x30
164	#define DW_EH_PE_funcrel    0x40
165	#define DW_EH_PE_aligned    0x50
166	#define DW_EH_PE_indirect   0x80

But it shows like this

150	#define DW_EH_PE_absptr»    »   0x00
151	#define DW_EH_PE_omit»  »   0xff
152	#define DW_EH_PE_uleb128»   0x01
153	#define DW_EH_PE_udata2»    »   0x02
154	#define DW_EH_PE_udata4»    »   0x03
155	#define DW_EH_PE_udata8»    »   0x04
156	#define DW_EH_PE_sleb128»   0x09
157	#define DW_EH_PE_sdata2»    »   0x0a
158	#define DW_EH_PE_sdata4»    »   0x0b
159	#define DW_EH_PE_sdata8»    »   0x0c
160	#define DW_EH_PE_signed»    »   0x08
161	#define DW_EH_PE_pcrel» »   0x10
162	#define DW_EH_PE_textrel»   0x20
163	#define DW_EH_PE_datarel»   0x30
164	#define DW_EH_PE_funcrel»   0x40
165	#define DW_EH_PE_aligned»   0x50
166	#define DW_EH_PE_indirect»  0x80

Please provide any additional information below.

If the tab is starting at column 3 + (4*n), the tab size is going to be 5.
Apr 21, 2011
#1 mdi...@google.com
This annoys me frequently too.

When show tabs is disabled, display is correct.
When show tabs is enabled, and there is a tab that should occupy one
column, instead it is displayed as 9 columns (with 8-column tab width).

Apr 21, 2011
#2 mdi...@google.com
I just noticed that, as the first report suggested, syntax coloring
affects the bug too.  The only combination that gives a correct display
is show tabs off, syntax coloring on.

Here is an example of what what I see on 2.1.6.1-1-g9ed6164:

Correct display (with show tabs off, syntax coloring on):

#define SMBPEC          (8 + i801_smba)         /* ICH3 and later */
#define SMBAUXSTS       (12 + i801_smba)        /* ICH4 and later */

Incorrect display with show tabs off, syntax coloring off:

#define SMBPEC                (8 + i801_smba)                /* ICH3 and later *
/
#define SMBAUXSTS        (12 + i801_smba)        /* ICH4 and later */

Incorrect display with show tabs on, syntax coloring on:

#define SMBPEC» »       (8 + i801_smba)»        »       /* ICH3 and later */
#define SMBAUXSTS»      (12 + i801_smba)»       /* ICH4 and later */

Incorrect display with show tabs on, syntax coloring off:

#define SMBPEC»       »       (8 + i801_smba)»       »       /* ICH3 and later *
/
#define SMBAUXSTS»      (12 + i801_smba)»       /* ICH4 and later */

May 20, 2011
Project Member #3 nas...@grainawi.org
(No comment was entered for this change.)
Status: Accepted
May 20, 2011
Project Member #4 nas...@grainawi.org
 Issue 929  has been merged into this issue.
Sign in to add a comment

Powered by Google Project Hosting