Fix bug #44 by Rocco Corsi

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@224 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
Chris Allegretta 2000-09-16 05:25:06 +00:00
parent 0b88ce08cb
commit f45c18daa0
3 changed files with 8 additions and 2 deletions

4
BUGS
View File

@ -62,6 +62,9 @@
- Unable to cut the entire file using the marker (discovered by Kev Tyler) - Unable to cut the entire file using the marker (discovered by Kev Tyler)
(42). [FIXED] (42). [FIXED]
- The keypad does not work when nano runs in the Gnome terminal (43). [FIXED] - The keypad does not work when nano runs in the Gnome terminal (43). [FIXED]
- When reading in a file, if the file is a directory the contents of the
file being edited are blown away (discovered by Chris Pimlot) (44). [FIXED]
** Open BUGS ** ** Open BUGS **
- Marked cutting sometimes leaves a newline in the file unintelligently, - Marked cutting sometimes leaves a newline in the file unintelligently,
@ -74,4 +77,3 @@
- totsize problems still abound in do_justify (33) - totsize problems still abound in do_justify (33)
$Id$ $Id$

View File

@ -9,6 +9,9 @@ CVS code -
do_cut_text() do_cut_text()
- Don't immediately abort if we're on filebot and the marker is - Don't immediately abort if we're on filebot and the marker is
set (fixes bug #42). set (fixes bug #42).
- files.c:
open_file()
- Fix for bug #44 (Rocco Corsi).
- global.c: - global.c:
shortcut_init() shortcut_init()
- Added in FKEYs that for some reason were left out. *boggle* - Added in FKEYs that for some reason were left out. *boggle*

View File

@ -228,6 +228,7 @@ int open_file(char *filename, int insert, int quiet)
} else { /* File is A-OK */ } else { /* File is A-OK */
if (S_ISDIR(fileinfo.st_mode)) { if (S_ISDIR(fileinfo.st_mode)) {
statusbar(_("File \"%s\" is a directory"), filename); statusbar(_("File \"%s\" is a directory"), filename);
if (!insert)
new_file(); new_file();
return -1; return -1;
} }