Follow-up Comment #4, bug #16452 (project mc):
mcedit is currently suitable for editing binary files, too. I wouldn't like
to give up this feature. So we had to do something like:
if (the current file looks like a text file) {
if (edit-size 0 get_byte(edit-size) != '\n') {
if
Follow-up Comment #6, bug #16452 (project mc):
I think such a dialog box should rather read:
The file you are editing does not end with a newline as required by many
programs. Do you want to add one?
[Yes] [No]
and - since mcedit is suitable for editing binaries - it would not hurt if
No
was
Follow-up Comment #5, bug #16452 (project mc):
... except that this patch does not actually handle the Cancel case ...
but other than that i'm fine with it.
___
Reply to this item at: