mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 09:39:52 +08:00
Fix for issue where init_tabs can't be modified on NetBSD
This commit is contained in:
parent
f41a699f5d
commit
bfccc7133d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user