mirror of
https://github.com/rfivet/uemacs.git
synced 2025-09-29 18:44:21 -04:00
Remove tab width constraints, was [2, 4, 8], now [1...
This commit is contained in:
9
basic.c
9
basic.c
@@ -51,13 +51,14 @@ static unsigned getgoal( struct line *dlp) {
|
||||
|
||||
/* Take tabs, ^X and \xx hex characters into account */
|
||||
if( c == '\t')
|
||||
col |= tabmask ;
|
||||
col += tabwidth - col % tabwidth ;
|
||||
else if( c < 0x20 || c == 0x7F)
|
||||
col += 1 ;
|
||||
else if( c >= 0x80 && c <= 0xA0)
|
||||
col += 2 ;
|
||||
else if( c >= 0x80 && c <= 0xA0)
|
||||
col += 3 ;
|
||||
else
|
||||
col += 1 ;
|
||||
|
||||
col += 1 ;
|
||||
if( col > curgoal)
|
||||
break ;
|
||||
|
||||
|
Reference in New Issue
Block a user