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: Fri, 28 Oct 2016 17:15:47 +0530
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0


Hi,


On Friday 28 October 2016 04:14 PM, Benno Schulenberg wrote:
There are still some blocks of code without comments.  I
haven't added them because I cannot wrap my head around
those parts -- they are too convoluted for me.  Either you
write the comments, or rewrite the searching in a more
straightforward manner.

Please find Attachment.
added comments. Please apply it over the patch you have sent.

Just a brief explanation  if the comments do not suffice.
Its the brute force algorithm to check the word. The word is copied only if shard is completely checked in the pletion_line
1) first while loop to travel between line
2) second for loop to traverse in the current line
3) to travel in shard..where the shard is checked against pletion line and breaks if unequal characters occur(not using strcmp)(character by character comparison) 4) if block checks if we have reached shard_length. If true then copy the completion. else proceed.


Thanks & Regards,
Sumedh Pendurkar

Attachment: 0002-Added-more-comments.patch
Description: Text Data


reply via email to

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