bug-readline
[Top][All Lists]
Advanced

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

[Bug-readline] Pasting large amounts of text into readline-enabled progr


From: Ben Booth
Subject: [Bug-readline] Pasting large amounts of text into readline-enabled programs truncates parts of the lines of the text being pasted
Date: Fri, 13 Apr 2012 11:42:41 -0700

readline 6.2.002, compiled for x86_64 architecture
OS: Arch Linux, updates current as of today.

uname -a
Linux skittles 3.3.1-1-ARCH #1 SMP PREEMPT Tue Apr 3 06:46:17 UTC 2012 x86_64 Intel(R) Core(TM)2 Quad CPU Q9300 @ 2.50GHz GenuineIntel GNU/Linux
https://projects.archlinux.org/svntogit/packages.git/plain/trunk/PKGBUILD?h=packages/readline

 ./configure --prefix=/usr --libdir=/lib
  make SHLIB_LIBS=-lncurses
If I paste large amounts of text into any readline-enabled program (psql, bash), parts of the text, particularly near the end of the text block, get truncated. It only seems to happen with blocks of text larger than a certain size (around 4kb or so).
I've attached an example SQL file. If I copy the file's contents to the clipboard and paste it into the terminal in psql, the "group by" line of the SQL query gets truncated so that only the numbers 1,2,3,4,5,6 are pasted into the psql session. I expected the rest of the line to be included as well. If I paste the same text block in bash, I get the same result: parts of the lines in the text block get truncated. 

However, if I try to paste into VIM, the text is preserved completely. I only see this behavior in readline-enabled programs.

I'm using Konsole with screen size 158 columns x 58 rows.
 
I haven't had time to look at the code yet, sorry.

Ben Booth 

Attachment: experiment.sql
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]