Addand fix bug #59

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@612 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
Chris Allegretta 2001-04-22 07:10:21 +00:00
parent 4dfaf93bcd
commit 5050aa6ae7
4 changed files with 12 additions and 0 deletions

2
BUGS
View File

@ -105,6 +105,8 @@
Krebs (57) [FIXED].
- File browser aborts on Solaris in qsort() call. (Reported by
Matthias Andree) (58) [FIXED].
- Can modify the current file in view mode with ^W^R (discovered by Rocco
Corsi) (58) [FIXED].
** Open BUGS **

View File

@ -37,6 +37,9 @@ Cvs code -
- search.c:
do_gotoline()
- Optimizations, remove "$" goes-to-last-line, less messages (Rocco)
do_replace()
- If we manage to make it in somehow with VIEW_MODE on, abort
nicely (fixes BUG #59).
nano 1.1 tree forked here 04/07/2001

View File

@ -147,6 +147,7 @@ void do_replace_highlight(int highlight_flag, char *word);
void nano_disabled_msg(void);
void window_init(void);
void do_mouse(void);
void print_view_warning(void);
#ifdef ENABLE_NANORC
void do_rcfile(void);

View File

@ -586,6 +586,12 @@ int do_replace(void)
filestruct *begin;
char *prevanswer = NULL, *buf = NULL;
if (ISSET(VIEW_MODE)) {
print_view_warning();
replace_abort();
return 0;
}
i = search_init(1);
switch (i) {
case -1: