nano-devel
[Top][All Lists]
Advanced

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

Re: Nano 4.6 eats this line


From: Seb
Subject: Re: Nano 4.6 eats this line
Date: Mon, 16 Dec 2019 20:20:58 +0100 (CET)
User-agent: Alpine 2.21 (DEB 202 2017-01-01)


Hello all,


Thanks Brand for confirming the problem, and Benno for fixing it!

As far as I can tell, the patch that I posted a few hours ago for a different issue, fixes also your issue. Please try it out.

It works. Thanks!

(The added characters in the second bullet point may not be blank characters, otherwise surprising and unintended behavior will occur. But it is the correct behavior, because you added "\" to the quoting string, so nano sees "\" as the start of a comment and thus copies it to the wrapped part.)

Yes, I did add \ to the quotestring, but only as a poor solution to a problem I met when newer versions of Nano starting differing from Pico's behavior. Here is an example:

        \noindent
        Lorem ipsum dolor sit amet, consectetur adipiscing elit

Each line starts with a <Tab> and there is no more text than that. When the cursor is on the second line, I expect ^J to leave the two lines alone. Instead, "Lorem [...]" is now put on the first line, after "\noindent". Pico didn't do that and I find it inconvenient.

Moreover, if the text becomes a little longer:

        \noindent
        Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore

then the behavior of ^J depends on which line it was called. If it is called on the third line, the paragraph remains the same (on an 80-column teminal at least); if it is called on the first or second line, the first and second line are fused together and the whole paragraph is reformated.

I'd really prefer \ not to be in "quotestring" since as you mentioned it can ruin inserting a space, but it is still less bothersome than Nano's now standard behavior.

The reason is the same for presence of "<" in the quotestring, here is an example:

        <p class="warning">
        Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore
        </pr>


Kind regards,
Sébastien.


reply via email to

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