[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] adding a word-completion feature to nano
From: |
Sumedh Pendurkar |
Subject: |
Re: [Nano-devel] adding a word-completion feature to nano |
Date: |
Fri, 4 Nov 2016 19:11:36 +0530 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 |
Hi,
On Thursday 03 November 2016 02:01 AM, Benno Schulenberg wrote:
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.
I tried replacing with backspaces. same things occurred.
I just tried this
MALLOC_CHECK_=2 src/nano --ignore --fill=10 +18 NEWS
type: aa port
then: two times ^] ..word was portability which was shifted to the next
line.
then: M-U for a two times. Ideally after first M-U it should reduce down
to port. But it was portil (where actually ENTER takes place)
Just another approach to solve this issue.
instead of using do_backspace() or charmove we can use do_undo() and
suppress the message on statusline.
then discard_until(openfile->current_undo, openfile);
This was just to replace those backspace/charmove function.
(I have not looked at the word wrap part of code yet, so its just an idea)
whenever we discover it exceeds and do_enter() has to called. remember
that. If remembered do 2 do_undos and discard 2 items off the undo_stack.
Thanks & Regards,
Sumedh Pendurkar
- 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, 2016/11/02
- Re: [Nano-devel] adding a word-completion feature to nano,
Sumedh Pendurkar <=
- 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