Ticket #3107 (closed defect: invalid)
Editor question on large file treats escape as Yes
Reported by: | TomasM | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 4.8.11 |
Component: | mcedit | Version: | 4.8.10 |
Keywords: | editor large file | Cc: | |
Blocked By: | Blocking: | ||
Branch state: | no branch | Votes for changeset: |
Description
When a cursor in midnight commander is at a large file (say 80MB) and I press F4 to edit the file, a dialog appears with question: "File XYZ is too large. Open it anyway?". Presented options are Yes or No. If I choose Yes, the file opens in editor. If I choose No, the editor doesn't open. This is correct so far.
But if I hit Esc key (twice) instead of selecting yes or no, it opens the file anyway in editor as like if I was choosing Yes. This is unexpected. I am expecting that Esc key will behave as if I am choosing No - I am expecting the dialog to disappear as if No was selected, and I am expecting the editor not to be started.
mc -V:
GNU Midnight Commander 4.8.10
Built with GLib 2.36.4
With builtin Editor
With subshell support as default
With support for background operations
With mouse support on xterm and Linux console
With support for X11 events
With internationalization support
With multiple codepages support
Virtual File Systems:cpiofs, tarfs, sfs, extfs, ftpfs, fish, smbfs
Data types: char: 8; int: 32; long: 32; void *: 32; size_t: 32; off_t: 64;
This is already fixed in master branch: [c26c3cc4fd7bd8123ec7b0e6b49dccc3a3aca08b].