nano-devel
[Top][All Lists]
Advanced

[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: Wed, 26 Oct 2016 23:48:18 +0530
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0

Hi,


On Wednesday 26 October 2016 03:16 PM, Benno Schulenberg wrote:
On Tue, Oct 25, 2016, at 22:29, Sumedh Pendurkar wrote:

But... wouldn't it be enough to instead simply do?:

     if (openfile->current_undo != NULL) {
         discard_until(openfile->current_undo->next, openfile);
         openfile->current_undo = openfile->undotop;
     }
This is the is basically the same thing which pop_undo() does. Replaced it with this as it is shorter.


Wouldn't it be much simpler to just set last_action = OTHER
whenever ^] is typed?  (Which the above suggested popping
of the top item already does.)
Fixed it.

Also changed the variable name, and reduced duplicate codes.

Please Find attachment.

Thanks & Regards,
Sumedh Pendurkar

Attachment: 0001-Complete-made-the-code-shorter-and-faster.patch
Description: Text Data


reply via email to

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