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: Benno Schulenberg
Subject: Re: [Nano-devel] adding a word-completion feature to nano
Date: Mon, 24 Oct 2016 09:28:30 +0200

Hello Sumedh,

On Mon, Oct 24, 2016, at 07:18, Sumedh Pendurkar wrote:
> On Thursday 20 October 2016 12:21 AM, Benno Schulenberg wrote:
> > [...] the undo system should not retain any
> > memory of all the tried possibilities.
> 
> I am thinking to add a 'action_type' in the enum for complete. And make 
> changes in do_backspace() and do_output(or these changes can also be 
> made in add_undo and update undo) and then we wont just add in the undo 
> stack to prevent this from happening. Is this approach okay?

Hm.  That requires changes in several places.  It is much easier
to just pop one or two items off of the undo stack.  It is quick,
short, and it happens all in complete_a_word().  So your proposed
approach does not seem like a good idea.

Benno

-- 
http://www.fastmail.com - IMAP accessible web-mail




reply via email to

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