mirror of
https://github.com/MidnightCommander/mc
synced 2025-04-02 13:12:53 +03:00
* edit.c (edit_reload): Don't initialize edit->macro_i, because
edit_init() takes care of it. * editwidget.c (edit): Likewise.
This commit is contained in:
parent
5c76f171ac
commit
8148b4973c
@ -1,5 +1,9 @@
|
||||
2002-12-15 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* edit.c (edit_reload): Don't initialize edit->macro_i, because
|
||||
edit_init() takes care of it.
|
||||
* editwidget.c (edit): Likewise.
|
||||
|
||||
* edit.h: Don't inclide malloc.h. Use g_malloc() and g_free()
|
||||
instead. Adjust all dependencies.
|
||||
|
||||
|
@ -635,7 +635,6 @@ edit_reload (WEdit *edit, const char *filename)
|
||||
int columns = edit->num_widget_columns;
|
||||
e = g_malloc0 (sizeof (WEdit));
|
||||
e->widget = edit->widget;
|
||||
e->macro_i = -1;
|
||||
if (!edit_init (e, lines, columns, filename, 0)) {
|
||||
g_free (e);
|
||||
return 0;
|
||||
|
@ -173,7 +173,6 @@ edit (const char *_file, int line)
|
||||
if (!(wedit = edit_init (NULL, LINES - 2, COLS, _file, line))) {
|
||||
return 0;
|
||||
}
|
||||
wedit->macro_i = -1;
|
||||
|
||||
/* Create a new dialog and add it widgets to it */
|
||||
edit_dlg =
|
||||
|
Loading…
x
Reference in New Issue
Block a user