Changeset 12010


Ignore:
Timestamp:
07/26/10 01:49:15 (19 months ago)
Author:
chorny
Message:

Tab width is configurable for opened file too

Location:
trunk/Padre
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre/Changes

    r12004 r12010  
    7575    - Split Padre::Wx::Dialog::WhereFrom into main and FBP classes to try 
    7676      out the designer-based approach experimentally (ADAMK) 
     77    - Tab width is configurable for opened file too (CHORNY) 
    7778 
    78790.66 2010.07.01 
  • trunk/Padre/lib/Padre/Document.pm

    r11816 r12010  
    12321232 
    12331233    my $style; 
     1234    my $config = Padre->ide->config; 
    12341235    if ( $indentation =~ /^t\d+/ ) { # we only do ONE tab 
    12351236        $style = { 
    12361237            use_tabs    => 1, 
    1237             tabwidth    => 8, 
     1238            tabwidth    => $config->editor_indent_tab_width || 8, 
    12381239            indentwidth => 8, 
    12391240        }; 
     
    12411242        $style = { 
    12421243            use_tabs    => 0, 
    1243             tabwidth    => 8, 
     1244            tabwidth    => $config->editor_indent_tab_width || 8, 
    12441245            indentwidth => $1, 
    12451246        }; 
     
    12471248        $style = { 
    12481249            use_tabs    => 1, 
    1249             tabwidth    => 8, 
     1250            tabwidth    => $config->editor_indent_tab_width || 8, 
    12501251            indentwidth => $1, 
    12511252        }; 
     
    12531254 
    12541255        # fallback 
    1255         my $config = Padre->ide->config; 
    12561256        $style = { 
    12571257            use_tabs    => $config->editor_indent_tab, 
Note: See TracChangeset for help on using the changeset viewer.