nano-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 2/2] input: do not auto-indent when something is pasted into


From: Brand Huntsman
Subject: Re: [PATCH 2/2] input: do not auto-indent when something is pasted into nano from outside
Date: Mon, 6 Jan 2020 14:59:29 -0700

On Mon, 6 Jan 2020 20:07:42 +0100
Benno Schulenberg <address@hidden> wrote:

> Wrapping pasted lines might be wanted, yes.  But also when pasting
> lines within nano (with ^U, from another file) automatic
> hard-wrapping does not occur -- lines do not get wrapped.

It should probably be consistent with uncut and insertfile. And pasted text 
might contain tabs in a regex that would cause hidden bugs in the code if 
converted to spaces.


> People that use --breaklonglines are already used to having to ^J any
> paragraphs that they have edited

Unless they use --disable-justify like me. But consistency.


> If our only goal is to suppress autoindent when an outside paste is
> occurring, there is no need to detect bracketed pastes.  See upcoming
> patch.  It's not perfect, but works well enough.

That probably doesn't work reliably for fast typing or laggy ssh/X connections. 
It also doesn't allow undo.




reply via email to

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