nano-devel
[Top][All Lists]
Advanced

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

Re: [Nano-devel] [PATCH] bug #48305: allow any kind of separator in "Go


From: Benno Schulenberg
Subject: Re: [Nano-devel] [PATCH] bug #48305: allow any kind of separator in "Go To Line"
Date: Mon, 04 Jul 2016 14:30:07 +0200

On Mon, Jul 4, 2016, at 13:53, Rishabh Dave wrote:
> On Sun, Jul 3, 2016 at 11:42 PM, Benno Schulenberg
> <address@hidden> wrote:
> > Try using strpbrk() -- see man 3 strpbrk.
> >
> > Patch should be very simple.
> 
> And strpbrk() also made it look elegant. Patch is attached.

Patch is not simple enough.  You don't need the variable 'accept'.

When you've got rid of it, sign off your patch.

> > But it should be unnecessary to use Alt+P.  When you look at a
> > .patch or .diff file with nano, trailing whitespace should be
> > very visible: green blocks at the ends of lines.
> 
> I edited rc-file with the help of manual, now it is working well.

??  You shouldn't need to edit ~/.nanorc to get syntax coloring
for .patch files.  But if your /etc/nanorc file doesn't do it, then
do 'include /usr/share/nano/patch.nanorc' in your ~/.nanorc.

> There are some green blocks in patch by default - source file doesn't
> have them. So, they are not be bothered with, I assume; must be
> introduced by git diff program.

??  Nano's patch syntax does not show green blocks where there
is no trailing whitespace.

Benno

-- 
http://www.fastmail.com - Same, same, but different...




reply via email to

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