[bug #16452] mcedit forgets POSIX newline at end of file

2006-04-29 Thread Roland Illig
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

[bug #16452] mcedit forgets POSIX newline at end of file

2006-04-29 Thread Rudolf Polzer
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

[bug #16452] mcedit forgets POSIX newline at end of file

2006-04-29 Thread Oswald Buddenhagen
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: