[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox-cvs
Subject: svn commit: trunk/busybox/miscutils
From: vda () busybox ! net (vda at busybox ! net)
Date: 2006-12-31 19:36:01
Message-ID: 20061231193601.B67EA485AB () busybox ! net
[Download RAW message or body]
Author: vda
Date: 2006-12-31 11:36:01 -0800 (Sun, 31 Dec 2006)
New Revision: 17121
Log:
less: fix <tab><backspace> buglet
Modified:
trunk/busybox/miscutils/less.c
Changeset:
Modified: trunk/busybox/miscutils/less.c
===================================================================
--- trunk/busybox/miscutils/less.c 2006-12-31 19:23:31 UTC (rev 17120)
+++ trunk/busybox/miscutils/less.c 2006-12-31 19:36:01 UTC (rev 17121)
@@ -212,13 +212,13 @@
}
}
c = readbuf[readpos];
- /* backspace? [need this for manpage display] */
- if (c == '\x8' && linepos) {
+ /* backspace? [needed for manpages] */
+ /* <tab><bs> is (a) insane and */
+ /* (b) harder to do correctly, so we refuse to do it */
+ if (c == '\x8' && linepos && p[-1] != '\t') {
readpos++; /* eat it */
- /* We do not consider the case of <tab><bs> */
- /* Anyone who has that is pure evil :) */
linepos--;
- *p-- = '\0';
+ *--p = '\0';
continue;
}
if (c == '\t')
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic