nano-devel
[Top][All Lists]
Advanced

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

Re: [Nano-devel] [PATCH] browser: when using goto prompt, previous worki


From: Rishabh Dave
Subject: Re: [Nano-devel] [PATCH] browser: when using goto prompt, previous working directory remains unselected
Date: Fri, 22 Jul 2016 22:26:31 +0530

On Thu, Jul 21, 2016 at 4:40 PM, Benno Schulenberg
<address@hidden> wrote:
>
> So... I'll accept M-G .. <Enter> highlighting its rabbit hole, but only
> if the user types exactly .. <Enter>, not anything else -- not ../, not
> ../., not ./.. nor ../../.., nothing.  Only M-G dot dot Enter.  This will
> allow the user to suppress the highlighting by typing dot dot slash, for
> example.  And for multilevel jumps, there will be no highlighting.
>
> If you can live with that, please provide an adapted patch.

Okay... Patch is attached. It checks for ".." at the end of the path
given at prompt and checks if character just before "/.." is a ".",
"/" or "~" because unlike letters they have special meaning. eg.
normally in nano, path = "//.." leads to / and path = "~/.." leads to
"/home" and in both cases highlight is disturbed if we don't check for
them.

Attachment: select-dotdot-only.patch
Description: Text Data


reply via email to

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