1
0
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:
2016-02-24 13:22:54 +08:00
parent 3e27fcf19e
commit c390cf2a3e
7 changed files with 77 additions and 62 deletions

View File

@@ -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 ;