@@ -334,13 +334,7 @@ pub fn build_app(interactive_output: bool) -> ClapApp<'static, 'static> {
334 .validator(
334 .validator(
336 let is_offset = t.starts_with('+') || t.starts_with('-');
336 let is_offset = t.starts_with('+') || t.starts_with('-');
337− let num = if is_offset {
338− t.chars().skip(1).collect()
343− num.parse::<u32>()
337+ t.parse::<i32>()
344 .map_err(|_e| "must be an offset or number")
338 .map_err(|_e| "must be an offset or number")
345 .and_then(|v| if v == 0 && !is_offset {
339 .and_then(|v| if v == 0 && !is_offset {
346 Err("terminal width cannot be zero".into())
340 Err("terminal width cannot be zero".into())