[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nano-devel] [PATCH] browser: keep selection despite of change in number

From: Rishabh Dave
Subject: [Nano-devel] [PATCH] browser: keep selection despite of change in number of files in cwd
Date: Thu, 5 May 2016 17:59:43 +0530


I have attached a fix for the bug #47812: adding or deleting files can
change the selected one in the browser
( Basically, code
increments/decrements 'selected' by amount of increase/decrease in
number of files on a refresh.

There is one side effect though, which may actually be plus point: If
selected file disappears (and if we refresh), then 'selected'
decrements by one (i.e. previous directory becomes selected file).
Drawback because of "the principle of minimum necessary change".
However, I feel it's good because moving cursor would alert (more to
the) user of loss of selected file (as movement of selected section is
more visible than change of file under the selection).


Attachment: select-inspite-of-refresh.patch
Description: Text Data

reply via email to

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