nano-devel
[Top][All Lists]
Advanced

[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: Benno Schulenberg
Subject: Re: [Nano-devel] [PATCH] browser: keep selection despite of change in number of files in cwd
Date: Sat, 07 May 2016 12:48:47 +0200

On Sat, May 7, 2016, at 10:23, Rishabh Dave wrote:
> 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.  [...]
> 
> 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.

'selected' is a number, 'prev_dir' a name.  You need to assign the name
that corresponds to 'selected' to 'prev_dir'.

> 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.

Without seeing your code, it's hard to diagnose the problem.

Benno

-- 
http://www.fastmail.com - Send your email first class




reply via email to

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