=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/less/input.c,v retrieving revision 1.1.1.3 retrieving revision 1.1.1.4 diff -u -r1.1.1.3 -r1.1.1.4 --- src/usr.bin/less/input.c 2011/09/16 17:47:04 1.1.1.3 +++ src/usr.bin/less/input.c 2014/04/25 13:33:48 1.1.1.4 @@ -1,11 +1,10 @@ /* - * Copyright (C) 1984-2011 Mark Nudelman + * Copyright (C) 1984-2012 Mark Nudelman * * You may distribute under the terms of either the GNU General Public * License or the Less License, as specified in the README file. * - * For more information about less, or for information on how to - * contact the author, see the README file. + * For more information, see the README file. */ @@ -25,7 +24,7 @@ extern int chopline; extern int hshift; extern int quit_if_one_screen; -extern int sigs; +extern volatile sig_atomic_t sigs; extern int ignore_eoi; extern int status_col; extern POSITION start_attnpos; @@ -416,7 +415,7 @@ goto get_back_line; } - if (status_col && is_hilited(base_pos, ch_tell()-1, 1, NULL)) + if (status_col && curr_pos > 0 && is_hilited(base_pos, curr_pos-1, 1, NULL)) set_status_col('*'); #endif