* edit.c (user_menu): Don't move the cursor before and after
inserting the block. Reported by Matthias Urban <murban@cs.uni-magdeburg.de>
Этот коммит содержится в:
родитель
6c821c8ad5
Коммит
eba0c6e703
@ -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.
|
||||
|
||||
|
@ -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 */
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user