nano-devel
[Top][All Lists]
Advanced

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

[Nano-devel] unwanted side effect on the non-breaking space


From: Benno Schulenberg
Subject: [Nano-devel] unwanted side effect on the non-breaking space
Date: Fri, 23 May 2014 16:34:30 +0200

Hi all,

In revison 4879 a non-breaking space was added to the tail of each
screen line, to get the terminal to correctly display lines that contained
wide characters (characters that take up more than one colum).  This
was a "fix" for bug #31743 (https://savannah.gnu.org/bugs/?31743).

But... it has the very unwanted side-effect of making the click-and-drag
selection of X think that each line is completely filled with text.

To reproduce: src/nano +123 src/winio.c, click in the upper left corner
and drag to the lower right, then mid-click (paste) into some browser
form field (a comment field of a Bugzilla will do), then press ^A and ^C,
start src/nano, and paste into the empty buffer.  See how three quarters
of the page turn blood-red: all trailing whitespace.  (That is when the
recently added default syntax has been installed.)

(The intermediary step through a browser field converts the non-breaking
space to a normal space.  Of course one could also use M-P to make all of
those spaces show up, but seeing the colour is much more dramatic. :) )

So, what to do?  It seems to me that people are more likely to run
into pasting unwanted trailing spaces from a nano screen into some
other application than to have wide characters in places where ncurses
goofs them up.  So I propose to revert r4879.

Anyone a better idea?  Opinions?

Benno

-- 
http://www.fastmail.fm - IMAP accessible web-mail




reply via email to

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