* editwidget.c (edit): Make edit_dlg local variable.

This commit is contained in:
Pavel Roskin 2002-09-24 15:10:47 +00:00
parent 91f4a75562
commit e7e6552a03
3 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,7 @@
2002-09-24 Pavel Roskin <proski@gnu.org>
* 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.

View File

@ -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;

View File

@ -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;
}