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 00:36:21 -0700

On Sun,  5 Jan 2020 16:32:07 +0100
Benno Schulenberg <address@hidden> wrote:

> Also, do not break overlong lines and do not convert tabs to spaces.

Pasting with auto-indent enabled always does the wrong thing with indented 
lines and this fixes it. But wrapping pasted lines might be wanted, and this 
removes that feature. You can currently toggle wrapping before and after a 
paste to get wrapping or no wrapping. Some pastes shouldn't be wrapped, and 
others should.

Wouldn't you always want tabs converted to spaces when pasting code to a file 
that uses spaces? Python fails if some lines use spaces and others use tabs. 
And if this feature really is wanted, should it also apply to tabgives?

I think wrapping and tabs2spaces shouldn't change for bracketed paste or both 
have options to enable them.




reply via email to

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