mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
* 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:
parent
6c821c8ad5
commit
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 */
|
||||
|
Loading…
Reference in New Issue
Block a user