* edit.c (user_menu): Don't move the cursor before and after

inserting the block.
Reported by Matthias Urban <murban@cs.uni-magdeburg.de>
This commit is contained in:
Pavel Roskin 2001-12-22 00:32:20 +00:00
parent 6c821c8ad5
commit eba0c6e703
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,9 @@
2001-12-21 Pavel Roskin <proski@gnu.org>
* edit.c (user_menu): Don't move the cursor before and after
inserting the block.
Reported by Matthias Urban <murban@cs.uni-magdeburg.de>
* syntax.c (read_one_line): Clear errno before using it. Don't
use the result of fgetc() if errno is EINTR.

View File

@ -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 */