[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#276345: copy-paste troubles with the first line of a less



Package: xterm
Version: 4.3.0.dfsg.1-8
Severity: normal

     Hi,

 It's been some months now that I repeatedly get a strange problem with
 a less in xterm:  if I select the first line of the xterm window, being
 the first line of the less dump too, I am pasting some sort of buffered
 data too, coming from previous lines of output.

 Say I have done a "grep -r foo bar | less", and copy-paste the first
 line of the xterm ("bar/xyz.c: ..."), I get what I've selected plus
 some preprended text ("blahblahbar/xyz.c: ...").  This happens when I
 select one or multiple lines or one or multiple words including the
 upper left word in the less in xterm.  It DOESN'T happen when I select
 character-wise (single-clicking instead of double- or triple-clicking).

 I can't reproduce deterministically but once I get it, it always happen
 with the same display.  Restarting the less usually clears things up.

 I think I already got the problem with vim a while ago, but I'm not
 copy-pasting so much from vim, either to it.

 I believe it's a but in the copy-paste word selection of xterm wich
 doesn't check if the characters selected are displayed and goes out of
 bound, but I can believe it is caused by improper terminal handling by
 less.


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-1-686
Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro

Versions of packages xterm depends on:
ii  libc6                     2.3.2.ds1-17   GNU C Library: Shared libraries an
ii  libexpat1                 1.95.6-8       XML parsing C library - runtime li
ii  libfontconfig1            2.2.3-1        generic font configuration library
ii  libfreetype6              2.1.7-2.2      FreeType 2 font engine, shared lib
ii  libice6                   4.3.0.dfsg.1-8 Inter-Client Exchange library
ii  libncurses5               5.4-4          Shared libraries for terminal hand
ii  libsm6                    4.3.0.dfsg.1-8 X Window System Session Management
ii  libxaw7                   4.3.0.dfsg.1-8 X Athena widget set library
ii  libxext6                  4.3.0.dfsg.1-8 X Window System miscellaneous exte
ii  libxft2                   2.1.2-6        FreeType-based font drawing librar
ii  libxmu6                   4.3.0.dfsg.1-8 X Window System miscellaneous util
ii  libxpm4                   4.3.0.dfsg.1-8 X pixmap library
ii  libxrender1               0.8.3-7        X Rendering Extension client libra
ii  libxt6                    4.3.0.dfsg.1-8 X Toolkit Intrinsics
ii  xlibs                     4.3.0.dfsg.1-8 X Window System client libraries m
ii  xlibs-data                4.3.0.dfsg.1-8 X Window System client data

-- no debconf information


   Regards,

-- 
Loïc Minier <lool@dooz.org>



Reply to: