nano-devel
[Top][All Lists]
Advanced

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

Re: [Nano-devel] [PATCH] cutting: when deleting whole words, don't join


From: David Ramsey
Subject: Re: [Nano-devel] [PATCH] cutting: when deleting whole words, don't join lines unexpectedly
Date: Mon, 10 Sep 2018 19:51:54 -0500

Benno Schulenberg:
> Yes they should take whitespace beyond the newline.  That's how I want
> it.  That curwordleft doesn't do this is because normally there isn't
> any whitespace at the end of lines, so I didn't test that case.
> Oversight.
>
> But not very impactful, because, as said, trailing whitespace will not
> be common -- and *if* it is there, then it is most likely a single
> trailing space, and it is good that it is not eaten.  So... I'm not
> sure I want to change it.

Trailing whitespace may be more or less common depending on what you're
using nano for; coding is one thing, composing text for e.g. emails is
another.

Whether it's good that trailing space isn't eaten would depend on the
circumstances, and I'd prefer to err on the side of consistency, since
it's reasonable to expect cut-word to work the same way in both
directions whenever possible.  (It's what I'd expect; I've been too busy
lately to really test it, or I'd have chimed in earlier.)



reply via email to

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