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 01:59:24 +0530
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0

Hi,

Some important modifications to code:
1) added pop_undo(undo_type) function. This functions the top element of undo stack and also makes current_undo point to what undotop is pointing
2) added a dummy struct undo so that we have the desired effect. Example
file just contains "for" user types "f" and then ^] . so it would now be "for for" in the file as well as in strdata of the undotop. Therefore doing a single undo would remove everything which I think is not desirable. 3) added a linked list of words. Words vanish from memory once a fresh attempt is made.

Please find the attachment.

Thanks & Regards,
Sumedh Pendurkar

Attachment: 0001-completion-undo-works-the-way-it-should-added-pop_un.patch
Description: Text Data


reply via email to

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