[Top][All Lists]

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

Re: [Nano-devel] [RFC] improved word bounds

From: Brand Huntsman
Subject: Re: [Nano-devel] [RFC] improved word bounds
Date: Fri, 27 Jul 2018 23:35:21 -0600

On Fri, 27 Jul 2018 19:36:17 -0600
Brand Huntsman <address@hidden> wrote:

> 1) stop scanning when transitioning between newline and non-newline
> Treating all newlines as a word would cut "linter." without also
> cutting all newlines after it. A second cut would cut all the
> newlines and bring the next block up to current line.

Attached patch fixes this issue. The only problem is that it makes start of 
each line a jump point. That can be fixed if the patch is wanted. do_next_word 
would need to move over whitespace after newlines. do_prev_word would need to 
move over whitespace and then move over newlines, which is more complicated 
than the do_next_word fix.

Attachment: only-newline-words-span-lines.patch
Description: Text Data

reply via email to

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