mirror of https://github.com/MidnightCommander/mc
* editcmd.c [HAVE_CHARSET]: Really include charset.h.
* editmenu.c (edit_wrap_cmd): Memory leaking fixed.
This commit is contained in:
parent
2c5388d1ac
commit
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>
|
||||
|
||||
* edit.c [HAVE_CHARSET]: Include charsets.h and selcodepage.h.
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_CHARSET
|
||||
#ifdef HAVE_CHARSET
|
||||
#include "../src/charsets.h"
|
||||
#endif
|
||||
|
||||
|
|
|
@ -4,6 +4,8 @@
|
|||
|
||||
Authors: 1996, 1997 Paul Sheer
|
||||
|
||||
$Id$
|
||||
|
||||
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
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
|
@ -60,13 +62,12 @@ void edit_wrap_cmd ()
|
|||
char s[12];
|
||||
sprintf (s, "%d", option_word_wrap_line_length);
|
||||
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) {
|
||||
option_word_wrap_line_length = atoi (f);
|
||||
free (f);
|
||||
}
|
||||
free (f);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue