Red Hat Bugzilla – Bug 34852
Doesn't allow changing tabs from 8 to 3.
Last modified: 2013-04-02 00:15:06 EDT
Editing login.c from util-linux which is formatted with tabs instead
of spaces looked horrible with tabs set to 8 by default, so I changed
the tab setting from 8 to 3. Hitting "OK", the editor changed my tab
setting to "4" instead of 3. Thinking I hit the wrong key, I tried
to change it back to 3, and it insisted on 4 instead.
I tried tabs set to 2,3,4,5,6,7,8,9 and midnight will NOT let you choose
an "odd" number. It looks like it is rounding up to the nearest even
number and ignoring your setting. When you go back into the menu to
set it again, your odd number is gone and is replaced by the next higher
number. I haven't tried on our latest rawhide to see if this exists
This is easily reproduceable.
I've just fixed it in CVS:
@@ -168,7 +168,10 @@ void edit_options_dialog (void)
option_tab_spacing = atoi (q);
if (option_tab_spacing < 0)
option_tab_spacing = 2;
+ /* Only allow even numbers */
option_tab_spacing += option_tab_spacing & 1;
option_syntax_highlighting = *quick_widgets[5 + OA].result;