mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 20:17:45 +00:00
expand: clarify tabstops argument name for expand_line
This commit is contained in:
parent
fc00b6bfc9
commit
a29ddea4e9
1 changed files with 3 additions and 2 deletions
|
@ -366,10 +366,11 @@ enum CharType {
|
||||||
Other,
|
Other,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::cognitive_complexity)]
|
||||||
fn expand_line(
|
fn expand_line(
|
||||||
buf: &mut Vec<u8>,
|
buf: &mut Vec<u8>,
|
||||||
output: &mut BufWriter<std::io::Stdout>,
|
output: &mut BufWriter<std::io::Stdout>,
|
||||||
ts: &[usize],
|
tabstops: &[usize],
|
||||||
options: &Options,
|
options: &Options,
|
||||||
) -> std::io::Result<()> {
|
) -> std::io::Result<()> {
|
||||||
use self::CharType::*;
|
use self::CharType::*;
|
||||||
|
@ -415,7 +416,7 @@ fn expand_line(
|
||||||
match ctype {
|
match ctype {
|
||||||
Tab => {
|
Tab => {
|
||||||
// figure out how many spaces to the next tabstop
|
// figure out how many spaces to the next tabstop
|
||||||
let nts = next_tabstop(ts, col, &options.remaining_mode);
|
let nts = next_tabstop(tabstops, col, &options.remaining_mode);
|
||||||
col += nts;
|
col += nts;
|
||||||
|
|
||||||
// now dump out either spaces if we're expanding, or a literal tab if we're not
|
// now dump out either spaces if we're expanding, or a literal tab if we're not
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue