diff --git a/edit/ChangeLog b/edit/ChangeLog index b267593b8..802e86cb6 100644 --- a/edit/ChangeLog +++ b/edit/ChangeLog @@ -1,5 +1,7 @@ 2002-09-24 Pavel Roskin + * editwidget.c (edit): Make edit_dlg local variable. + * editmenu.c (edit_drop_menu_cmd): Don't use edit_dlg variable. * edit.c: Remove all references to CR_LF_TRANSLATION. diff --git a/edit/edit.h b/edit/edit.h index 9d5176f1b..1051b124b 100644 --- a/edit/edit.h +++ b/edit/edit.h @@ -352,7 +352,6 @@ extern char *home_dir; extern int edit_key_emulation; extern WEdit *wedit; extern Menu EditMenuBar[]; -extern Dlg_head *edit_dlg; extern WMenu *edit_menubar; extern int option_word_wrap_line_length; diff --git a/edit/editwidget.c b/edit/editwidget.c index 4ad6c640b..3616d23c4 100644 --- a/edit/editwidget.c +++ b/edit/editwidget.c @@ -24,7 +24,6 @@ #include "edit.h" WEdit *wedit; -Dlg_head *edit_dlg; WMenu *edit_menubar; int column_highlighting = 0; @@ -152,6 +151,7 @@ edit (const char *_file, int line) static int made_directory = 0; int framed = 0; char *text = 0; + Dlg_head *edit_dlg; WButtonBar *edit_bar; if (option_backup_ext_int != -1) { @@ -216,7 +216,6 @@ edit (const char *_file, int line) edit_done_menu (); /* editmenu.c */ destroy_dlg (edit_dlg); - edit_dlg = NULL; return 1; }