summaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2012-06-26 20:38:53 +0000
committerXin LI <delphij@FreeBSD.org>2012-06-26 20:38:53 +0000
commitae8c2162b0f1c1823dae013469f900b9882b77a2 (patch)
tree9492f724d6c5c2081c7f6b978b27d62af6523d31 /input.c
parent5b2db585ea1bc974ea3553d32447fba4e9ec0c2a (diff)
Diffstat (limited to 'input.c')
-rw-r--r--input.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/input.c b/input.c
index b82868bca4d2..9e3cf036e5b3 100644
--- a/input.c
+++ b/input.c
@@ -1,12 +1,11 @@
-/*
- * Copyright (C) 1984-2011 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.
- */
+/*
+ * 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, see the README file.
+ */
/*
@@ -416,7 +415,7 @@ get_back_line:
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