initialize the static pid_t pid in text.c, just in case
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3107 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
f400c23279
commit
8779a17ffe
|
@ -73,13 +73,13 @@ CVS code -
|
||||||
nanogetstr() (renamed get_prompt_string()), statusq() (renamed
|
nanogetstr() (renamed get_prompt_string()), statusq() (renamed
|
||||||
do_prompt()), statusq_abort() (renamed do_prompt_abort()), and
|
do_prompt()), statusq_abort() (renamed do_prompt_abort()), and
|
||||||
do_yesno() (renamed do_yesno_prompt()). (DLR)
|
do_yesno() (renamed do_yesno_prompt()). (DLR)
|
||||||
|
- Initialize the static pid_t pid in text.c. (DLR)
|
||||||
- chars.c:
|
- chars.c:
|
||||||
mbwidth()
|
mbwidth()
|
||||||
- If wcwidth() returns -1 for the character passed in, treat the
|
- If wcwidth() returns -1 for the character passed in, treat the
|
||||||
character as having the width of Unicode U+FFFD (Replacement
|
character as having the width of Unicode U+FFFD (Replacement
|
||||||
Character) instead of having zero width, since there are
|
Character) instead of having a width of zero, since display
|
||||||
display problems that sometimes crop up with the latter
|
problems can crop up with the latter approach. (DLR)
|
||||||
approach. (DLR)
|
|
||||||
- files.c:
|
- files.c:
|
||||||
read_file()
|
read_file()
|
||||||
- Remove apparently unneeded logic to handle a case where
|
- Remove apparently unneeded logic to handle a case where
|
||||||
|
|
|
@ -34,10 +34,9 @@
|
||||||
#include "proto.h"
|
#include "proto.h"
|
||||||
|
|
||||||
#ifndef NANO_SMALL
|
#ifndef NANO_SMALL
|
||||||
static pid_t pid;
|
static pid_t pid = -1;
|
||||||
/* The PID of the newly forked process in execute_command(). It
|
/* The PID of the newly forked process in execute_command(), for
|
||||||
* must be global because the cancel_command() signal handler
|
* use with the cancel_command() signal handler. */
|
||||||
* needs it. */
|
|
||||||
#endif
|
#endif
|
||||||
#ifndef DISABLE_WRAPPING
|
#ifndef DISABLE_WRAPPING
|
||||||
static bool same_line_wrap = FALSE;
|
static bool same_line_wrap = FALSE;
|
||||||
|
|
Loading…
Reference in New Issue