Fix for issue where init_tabs can't be modified on NetBSD

This commit is contained in:
ridiculousfish 2012-08-17 17:36:52 -07:00
parent f41a699f5d
commit bfccc7133d

View File

@ -118,10 +118,8 @@ static size_t next_tab_stop( size_t in )
/*
Assume tab stops every 8 characters if undefined
*/
if( init_tabs <= 0 )
init_tabs = 8;
return ( (in/init_tabs)+1 )*init_tabs;
size_t tab_width = (init_tabs > 0 ? (size_t)init_tabs : 8);
return ( (in/tab_width)+1 )*tab_width;
}
// PCA for term256 support, let's just detect the escape codes directly