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: Tue, 18 Oct 2016 10:41:58 +0200

On Mon, Oct 17, 2016, at 22:39, Sumedh Pendurkar wrote:
> Please correct me if I am wrong about this:
> 1)When user hits "^]", every time complete_a_word() should be
> called.(instead of taking input in a loop as I have done in the previous
> patch)

Correct.

> 2) I should be using 2 global variables(or something similar of that sort)
> 1. To store if user has hit consecutive "^]" (so it starts from the last
> position else start from fileage) 2. last position where the word is found.

Yes.  That probably means three global vars, because for the
position you need a line and an x position.  But probably you
can use completion_line=NULL to mean a fresh search is needed.

Benno

-- 
http://www.fastmail.com - Access your email from home and the web




reply via email to

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