Package: less
Version: 406-0
Severity: normal

It seems that when searching for text in a file containing long lines,
with the -g or -w (or both) options enabled, the display gets corrupted.
I've reproduced the same problem in xterm, gnome-terminal, and at the
linux console. The corruption looks like this on screen:

/lib/modules/2.6.23-1-686/kernel/drivers/ata/sata_sil24.ko: /lib/modules/2.6.23
-1-686/kernel/drivers/ata/libata.ko /lib/modules/2.6.23-1-686/kernel/drivers/sc
si/scsi_mod.kodrivers/ata/libata.ko /lib/modules/2.6.23-1-686/kernel/drivers/sc
/lib/modules/2.6.23-1-686/kernel/drivers/ata/sata_vsc.ko: /lib/modules/2.6.23-1

(And similar all the way down the screen.)

If I press ctrl-l, it clears up:

/lib/modules/2.6.23-1-686/kernel/drivers/ata/sata_sil24.ko: /lib/modules/2.6.23
-1-686/kernel/drivers/ata/libata.ko /lib/modules/2.6.23-1-686/kernel/drivers/sc
si/scsi_mod.ko
/lib/modules/2.6.23-1-686/kernel/drivers/ata/sata_vsc.ko: /lib/modules/2.6.23-1

So the problem is that less has displayed the second line on the third 
line, and then overwritten it with "si/scsi_mod.ko", but neglected
to clear the rest of the line.

In the above example, I ran less in a 79x49 xterm, on my modules.dep
file (attached, just in case..), and searched for "sata". The first
search didn't show the corruption, so I hit "n" and saw it on the second
try. If I do the same thing in an 80x26 xterm, I see the corruption
in the first search too.

406-0 is the first version I can reproduce the problem with, and it
still affects 416-1. The problem does not show up if I run less 394 on
the same file, on the same system. That seems to rule out anything other
than the less binary being at fault, but I'm not sure. I now find this
bug really annoying, and see it nearly every day, and it's hard to
believe I wouldn't have noticed it in the months since version 406
if it was happening all along.

Without -g and -w, I don't see the problem..

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.23-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages less depends on:
ii  debianutils               2.28.2         Miscellaneous utilities specific t
ii  libc6                     2.7-5          GNU C Library: Shared libraries
ii  libncurses5               5.6+20071215-1 Shared libraries for terminal hand

less recommends no packages.

-- no debconf information

-- 
see shy jo

Attachment: modules.dep.gz
Description: Binary data

Attachment: signature.asc
Description: Digital signature

Reply via email to