[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] adding a word-completion feature to nano
From: |
Benno Schulenberg |
Subject: |
Re: [Nano-devel] adding a word-completion feature to nano |
Date: |
Wed, 02 Nov 2016 21:31:08 +0100 |
On Tue, Nov 1, 2016, at 17:03, Benno Schulenberg wrote:
> The current code works fine... as long as word wrap does not
> kick in. To see what I mean, run this:
>
> MALLOC_CHECK_=2 src/nano --ignore --fill=10 +18 NEWS
>
> and type: aa port
> then type five times ^], until "No further matches" appears,
> then type twice M-U.
> Result: Aborted.
The attached patch avoids the issue, by temporarily disabling
wrapping when trying completions. The wrapping will take place
a little later, when the user accepts a completion and continues
to type more characters. Only when the user types <Enter> after
the completion does the filling/justifying of the line not take
place. If we can't come up with a fully correct solution, I
think this overshooting the right margin in the case of <Enter>
will be tolerable.
Benno
--
http://www.fastmail.com - Does exactly what it says on the tin
waswrapping.patch
Description: Text Data
- Re: [Nano-devel] adding a word-completion feature to nano, Benno Schulenberg, 2016/11/01
- Re: [Nano-devel] adding a word-completion feature to nano,
Benno Schulenberg <=
- Re: [Nano-devel] adding a word-completion feature to nano, Sumedh Pendurkar, 2016/11/04
- Re: [Nano-devel] adding a word-completion feature to nano, Sumedh Pendurkar, 2016/11/06
- Re: [Nano-devel] adding a word-completion feature to nano, Benno Schulenberg, 2016/11/07
- Re: [Nano-devel] adding a word-completion feature to nano, Benno Schulenberg, 2016/11/09
- Re: [Nano-devel] adding a word-completion feature to nano, Sumedh Pendurkar, 2016/11/09
- Re: [Nano-devel] adding a word-completion feature to nano, Benno Schulenberg, 2016/11/11
- Re: [Nano-devel] adding a word-completion feature to nano, Sumedh Pendurkar, 2016/11/29
- Re: [Nano-devel] adding a word-completion feature to nano, Benno Schulenberg, 2016/11/30
- Re: [Nano-devel] adding a word-completion feature to nano, Sumedh Pendurkar, 2016/11/30