diff --git a/edit/ChangeLog b/edit/ChangeLog index 333ac055c..1cd93c948 100644 --- a/edit/ChangeLog +++ b/edit/ChangeLog @@ -1,5 +1,9 @@ 2001-12-21 Pavel Roskin + * edit.c (user_menu): Don't move the cursor before and after + inserting the block. + Reported by Matthias Urban + * syntax.c (read_one_line): Clear errno before using it. Don't use the result of fgetc() if errno is EINTR. diff --git a/edit/edit.c b/edit/edit.c index f183c3391..ca90b93be 100644 --- a/edit/edit.c +++ b/edit/edit.c @@ -2702,9 +2702,7 @@ void user_menu (WEdit *edit) } if (!rc) { - edit_cursor_to_bol (edit); edit_insert_file (edit, block_file); - edit_cursor_to_eol (edit); } } else { /* error file exists and is not empty */