diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-30 18:09:18 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-30 18:09:18 +0100 |
commit | ecd90fd488cd0c519070656f5cfa0b0959979be9 (patch) | |
tree | 789492a15652d22f84f63707629104d7b4493995 /miscutils/less.c | |
parent | a42524251effb54496681f849f2c599273faa3a4 (diff) | |
download | busybox-w32-ecd90fd488cd0c519070656f5cfa0b0959979be9.tar.gz busybox-w32-ecd90fd488cd0c519070656f5cfa0b0959979be9.tar.bz2 busybox-w32-ecd90fd488cd0c519070656f5cfa0b0959979be9.zip |
fix Unicode config option limits and some comments in less
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils/less.c')
-rw-r--r-- | miscutils/less.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/miscutils/less.c b/miscutils/less.c index 48f3a751f..92d0f3271 100644 --- a/miscutils/less.c +++ b/miscutils/less.c | |||
@@ -542,7 +542,7 @@ static void cap_cur_fline(int nlines) | |||
542 | cur_fline = 0; | 542 | cur_fline = 0; |
543 | diff = max_fline - (cur_fline + max_displayed_line) + TILDES; | 543 | diff = max_fline - (cur_fline + max_displayed_line) + TILDES; |
544 | /* As the number of lines requested was too large, we just move | 544 | /* As the number of lines requested was too large, we just move |
545 | to the end of the file */ | 545 | * to the end of the file */ |
546 | if (diff > 0) | 546 | if (diff > 0) |
547 | cur_fline += diff; | 547 | cur_fline += diff; |
548 | } | 548 | } |
@@ -554,7 +554,8 @@ static const char controls[] ALIGN1 = | |||
554 | "\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" | 554 | "\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
555 | "\x7f\x9b"; /* DEL and infamous Meta-ESC :( */ | 555 | "\x7f\x9b"; /* DEL and infamous Meta-ESC :( */ |
556 | static const char ctrlconv[] ALIGN1 = | 556 | static const char ctrlconv[] ALIGN1 = |
557 | /* '\n': it's a former NUL - subst with '@', not 'J' */ | 557 | /* why 40 instead of 4a below? - it is a replacement for '\n'. |
558 | * '\n' is a former NUL - we subst it with @, not J */ | ||
558 | "\x40\x41\x42\x43\x44\x45\x46\x47\x48\x49\x40\x4b\x4c\x4d\x4e\x4f" | 559 | "\x40\x41\x42\x43\x44\x45\x46\x47\x48\x49\x40\x4b\x4c\x4d\x4e\x4f" |
559 | "\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"; | 560 | "\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"; |
560 | 561 | ||