Sync OpenBSD patchset 1087:

Minor style nits - return ().
This commit is contained in:
Tiago Cunha
2012-04-10 09:54:29 +00:00
parent 09e6b7c137
commit e5b3858944
4 changed files with 7 additions and 7 deletions

View File

@ -805,14 +805,14 @@ window_copy_key_numeric_prefix(struct window_pane *wp, int key)
key &= KEYC_MASK_KEY;
if (key < '0' || key > '9')
return 1;
return (1);
if (data->numprefix >= 100) /* no more than three digits */
return 0;
return (0);
data->numprefix = data->numprefix * 10 + key - '0';
window_copy_redraw_lines(wp, screen_size_y(s) - 1, 1);
return 0;
return (0);
}
/* ARGSUSED */