[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] [PATCH] browser: keep selection despite of change in nu
From: |
Rishabh Dave |
Subject: |
Re: [Nano-devel] [PATCH] browser: keep selection despite of change in number of files in cwd |
Date: |
Sat, 7 May 2016 13:53:38 +0530 |
On Thu, May 5, 2016 at 11:25 PM, Benno Schulenberg
<address@hidden> wrote:
> No. What I was thinking was: use the prev_dir mechanism. Call
> it sitting_on or something. Where now 'kbinput = KEY_WINCH' is
> set, set instead sitting_on and goto change_browser_directory.
> (We're not changing directory, so it will need a new name.) Then
> browser_select_dirname will again select the exact same filename
> no matter where it moved in the list, up, down, or stayed put.
> When the file has disappeared, then browser_select_dirname should
> return simply the value of selected -- or selected - 1, as you
> suggest below. After that you can delete the duplicate code in
> the first occurrence of 'if (kbinput == KEY_WINCH)'.
>
I failed to apply this solution. And I can't figure why. So basically
I am stuck. Sorry about that.
If we goto change_browser_directory, we first need to set prev_dir to
selected. Did that but src/nano freezes the terminal. I used valgrind,
error points to closedir(dir), in browser_init(). That is where I
don't know what to do next since I don't know what leads to error.
- [Nano-devel] [PATCH] browser: keep selection despite of change in number of files in cwd, Rishabh Dave, 2016/05/05
- Re: [Nano-devel] [PATCH] browser: keep selection despite of change in number of files in cwd, Benno Schulenberg, 2016/05/05
- Re: [Nano-devel] [PATCH] browser: keep selection despite of change in number of files in cwd,
Rishabh Dave <=
- Re: [Nano-devel] [PATCH] browser: keep selection despite of change in number of files in cwd, Benno Schulenberg, 2016/05/07
- Re: [Nano-devel] [PATCH] browser: keep selection despite of change in number of files in cwd, Rishabh Dave, 2016/05/08
- Re: [Nano-devel] [PATCH] browser: keep selection despite of change in number of files in cwd, Benno Schulenberg, 2016/05/08
- Re: [Nano-devel] [PATCH] browser: keep selection despite of change in number of files in cwd, Rishabh Dave, 2016/05/09
- Re: [Nano-devel] [PATCH] browser: keep selection despite of change in number of files in cwd, Benno Schulenberg, 2016/05/10
- Re: [Nano-devel] [PATCH] browser: keep selection despite of change in number of files in cwd, Rishabh Dave, 2016/05/11
- Re: [Nano-devel] [PATCH] browser: keep selection despite of change in number of files in cwd, Benno Schulenberg, 2016/05/11
- Re: [Nano-devel] [PATCH] browser: keep selection despite of change in number of files in cwd, Rishabh Dave, 2016/05/11
- Re: [Nano-devel] [PATCH] browser: keep selection despite of change in number of files in cwd, Rishabh Dave, 2016/05/11
- Re: [Nano-devel] [PATCH] browser: keep selection despite of change in number of files in cwd, Benno Schulenberg, 2016/05/12