[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] Patch to files.c
From: |
Chris Allegretta |
Subject: |
Re: [Nano-devel] Patch to files.c |
Date: |
Fri, 29 Mar 2002 11:34:41 -0500 |
User-agent: |
Mutt/1.3.25i |
On Wed, Mar 27, 2002 at 03:40:54PM -0500, David Benbennick wrote:
> On Wed, 27 Mar 2002, Chris Allegretta wrote:
> > I did notice that when the first command hangs and is interrupted with
> > ^C, executing another command will cause nano to sefgault.
> > Apparently something in read_file is unhappy.
>
> Yeah, I noticed that last night but was too tired to fix it. Anyway, here
> is a fix. The problem was with the static variable size in read_byte. I
> really hate static local variables; maybe someday I will make the
> read_file code cleaner.
>
> The patch includes what I sent last night.
Okay, I finally sorted through this patch. I moved the open_pipe code
to nano.c because it does a lot of things that nano.c programs do, and
if it's going to be generalized it should probably be there anyway. I
also dropped the backup_intr_char because oldterm should always have the
correct terminal info from before the program started, and since
open_pipe is in nano.c it now can see olterm which is static :)
Credited and committed.
Now onto this silly new BTS bug and hopefully I can release, woo! :)
Chris A
--
Chris Allegretta http://www.asty.org
"Share and Enjoy" - Douglas Adams, 1952 - 2001
- Re: [Nano-devel] Patch to execute external command and inerst output into buffer..., (continued)
- Re: [Nano-devel] Patch to execute external command and inerst output into buffer..., Dwayne Rightler, 2002/03/21
- Re: [Nano-devel] Patch to execute external command and inerst output into buffer..., Jordi Mallach, 2002/03/21
- [Nano-devel] Patch to do_justify, David Benbennick, 2002/03/21
- Re: [Nano-devel] Patch to do_justify, Chris Allegretta, 2002/03/21
- [Nano-devel] Patch to files.c:read_file, David Benbennick, 2002/03/26
- [Nano-devel] Patch to files.c, David Benbennick, 2002/03/26
- Re: [Nano-devel] Patch to files.c, Chris Allegretta, 2002/03/26
- Re: [Nano-devel] Patch to files.c, David Benbennick, 2002/03/27
- Re: [Nano-devel] Patch to files.c, Chris Allegretta, 2002/03/27
- Re: [Nano-devel] Patch to files.c, David Benbennick, 2002/03/27
- Re: [Nano-devel] Patch to files.c,
Chris Allegretta <=