* editcmd.c [HAVE_CHARSET]: Really include charset.h.
* editmenu.c (edit_wrap_cmd): Memory leaking fixed.
Этот коммит содержится в:
родитель
2c5388d1ac
Коммит
fbd1a3f367
@ -1,3 +1,8 @@
|
|||||||
|
2001-06-08 Andrew V. Samoilov <sav@bcs.zp.ua>
|
||||||
|
|
||||||
|
* editcmd.c [HAVE_CHARSET]: Really include charset.h.
|
||||||
|
* editmenu.c (edit_wrap_cmd): Memory leaking fixed.
|
||||||
|
|
||||||
2001-06-05 Pavel Roskin <proski@gnu.org>
|
2001-06-05 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
* edit.c [HAVE_CHARSET]: Include charsets.h and selcodepage.h.
|
* edit.c [HAVE_CHARSET]: Include charsets.h and selcodepage.h.
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef HAVE_CHARSET
|
#ifdef HAVE_CHARSET
|
||||||
#include "../src/charsets.h"
|
#include "../src/charsets.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -4,6 +4,8 @@
|
|||||||
|
|
||||||
Authors: 1996, 1997 Paul Sheer
|
Authors: 1996, 1997 Paul Sheer
|
||||||
|
|
||||||
|
$Id$
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
@ -60,13 +62,12 @@ void edit_wrap_cmd ()
|
|||||||
char s[12];
|
char s[12];
|
||||||
sprintf (s, "%d", option_word_wrap_line_length);
|
sprintf (s, "%d", option_word_wrap_line_length);
|
||||||
f = input_dialog (_(" Word wrap "),
|
f = input_dialog (_(" Word wrap "),
|
||||||
/* Not essential to translate */
|
_(" Enter line length, 0 for off: "), s);
|
||||||
_(" Enter line length, 0 for off: "), s);
|
|
||||||
if (f) {
|
if (f) {
|
||||||
if (*f) {
|
if (*f) {
|
||||||
option_word_wrap_line_length = atoi (f);
|
option_word_wrap_line_length = atoi (f);
|
||||||
free (f);
|
|
||||||
}
|
}
|
||||||
|
free (f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user