Get rid of lack of update when searching andmark is set

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@185 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
Chris Allegretta 2000-08-19 03:53:39 +00:00
parent 8c81d23a7e
commit f1d33d30ce
6 changed files with 50 additions and 25 deletions

2
BUGS
View File

@ -51,6 +51,8 @@
written out to disk when saved..... (37). [FIXED] written out to disk when saved..... (37). [FIXED]
- Page up and page down do not work the same way as Pico (# of lines). (38) - Page up and page down do not work the same way as Pico (# of lines). (38)
[FIXED] [FIXED]
- When doing a search and the marker is set, the screen does not always
properly update the inverted text (39). [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,

View File

@ -1,4 +1,15 @@
CVS Code CVS Code
- winio.c:
total_refresh()
- Added edit_refresh() call to actually update the screen if messy.
edit_refresh_clearok()
- New function, does a total update for edit refresh, needed to fix
lack of reversed text on searching with MARK_ISSET.
- search.c:
search_abort()
- Now calls edit_refresh_clearok when MARK_ISSET to handle screen
ugliness bug (reported by Ken Tyler).
nano-0.9.16 - 08/09/2000 nano-0.9.16 - 08/09/2000
- cut.c: - cut.c:
do_cut_text() do_cut_text()

View File

@ -6,7 +6,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2000-08-07 11:03-0400\n" "POT-Creation-Date: 2000-08-18 23:52-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -344,7 +344,7 @@ msgid "Case Sens"
msgstr "" msgstr ""
#: global.c:285 global.c:304 global.c:314 global.c:330 global.c:334 #: global.c:285 global.c:304 global.c:314 global.c:330 global.c:334
#: global.c:340 winio.c:984 #: global.c:340 winio.c:994
msgid "Cancel" msgid "Cancel"
msgstr "" msgstr ""
@ -691,47 +691,47 @@ msgstr ""
msgid "Search Wrapped" msgid "Search Wrapped"
msgstr "" msgstr ""
#: search.c:241 #: search.c:243
#, c-format #, c-format
msgid "Replaced %d occurences" msgid "Replaced %d occurences"
msgstr "" msgstr ""
#: search.c:243 #: search.c:245
msgid "Replaced 1 occurence" msgid "Replaced 1 occurence"
msgstr "" msgstr ""
#: search.c:378 search.c:399 search.c:422 #: search.c:380 search.c:401 search.c:424
msgid "Replace Cancelled" msgid "Replace Cancelled"
msgstr "" msgstr ""
#: search.c:395 #: search.c:397
#, c-format #, c-format
msgid "Replace with [%s]" msgid "Replace with [%s]"
msgstr "" msgstr ""
#. last_search is empty #. last_search is empty
#: search.c:420 #: search.c:422
msgid "Replace with" msgid "Replace with"
msgstr "" msgstr ""
#: search.c:461 #: search.c:463
msgid "Replace this instance?" msgid "Replace this instance?"
msgstr "" msgstr ""
#. Ask for it #. Ask for it
#: search.c:512 #: search.c:514
msgid "Enter line number" msgid "Enter line number"
msgstr "" msgstr ""
#: search.c:514 #: search.c:516
msgid "Aborted" msgid "Aborted"
msgstr "" msgstr ""
#: search.c:534 #: search.c:536
msgid "Come on, be reasonable" msgid "Come on, be reasonable"
msgstr "" msgstr ""
#: search.c:539 #: search.c:541
#, c-format #, c-format
msgid "Only %d lines available, skipping to last line" msgid "Only %d lines available, skipping to last line"
msgstr "" msgstr ""
@ -758,50 +758,50 @@ msgstr ""
msgid "Modified" msgid "Modified"
msgstr "" msgstr ""
#: winio.c:900 #: winio.c:910
#, c-format #, c-format
msgid "Moved to (%d, %d) in edit buffer\n" msgid "Moved to (%d, %d) in edit buffer\n"
msgstr "" msgstr ""
#: winio.c:911 #: winio.c:921
#, c-format #, c-format
msgid "current->data = \"%s\"\n" msgid "current->data = \"%s\"\n"
msgstr "" msgstr ""
#: winio.c:954 #: winio.c:964
#, c-format #, c-format
msgid "I got \"%s\"\n" msgid "I got \"%s\"\n"
msgstr "" msgstr ""
#: winio.c:979 #: winio.c:989
msgid "Yes" msgid "Yes"
msgstr "" msgstr ""
#: winio.c:981 #: winio.c:991
msgid "All" msgid "All"
msgstr "" msgstr ""
#: winio.c:983 #: winio.c:993
msgid "No" msgid "No"
msgstr "" msgstr ""
#: winio.c:1119 #: winio.c:1129
#, c-format #, c-format
msgid "do_cursorpos: linepct = %f, bytepct = %f\n" msgid "do_cursorpos: linepct = %f, bytepct = %f\n"
msgstr "" msgstr ""
#: winio.c:1123 #: winio.c:1133
msgid "line %d of %d (%.0f%%), character %d of %d (%.0f%%)" msgid "line %d of %d (%.0f%%), character %d of %d (%.0f%%)"
msgstr "" msgstr ""
#: winio.c:1247 #: winio.c:1257
msgid "Dumping file buffer to stderr...\n" msgid "Dumping file buffer to stderr...\n"
msgstr "" msgstr ""
#: winio.c:1249 #: winio.c:1259
msgid "Dumping cutbuffer to stderr...\n" msgid "Dumping cutbuffer to stderr...\n"
msgstr "" msgstr ""
#: winio.c:1251 #: winio.c:1261
msgid "Dumping a buffer to stderr...\n" msgid "Dumping a buffer to stderr...\n"
msgstr "" msgstr ""

View File

@ -80,7 +80,7 @@ void blank_bottombars(void);
void check_wrap(filestruct * inptr, char ch); void check_wrap(filestruct * inptr, char ch);
void dump_buffer(filestruct * inptr); void dump_buffer(filestruct * inptr);
void align(char **strp); void align(char **strp);
void edit_refresh(void); void edit_refresh(void), edit_refresh_clearok(void);
void edit_update(filestruct * fileptr, int topmidbot); void edit_update(filestruct * fileptr, int topmidbot);
void update_cursor(void); void update_cursor(void);
void delete_node(filestruct * fileptr); void delete_node(filestruct * fileptr);

View File

@ -201,6 +201,8 @@ void search_abort(void)
UNSET(KEEP_CUTBUFFER); UNSET(KEEP_CUTBUFFER);
display_main_list(); display_main_list();
wrefresh(bottomwin); wrefresh(bottomwin);
if (ISSET(MARK_ISSET))
edit_refresh_clearok();
#ifdef _POSIX_VERSION #ifdef _POSIX_VERSION
if (ISSET(REGEXP_COMPILED)) if (ISSET(REGEXP_COMPILED))

12
winio.c
View File

@ -862,6 +862,16 @@ void edit_refresh(void)
editbot = temp; editbot = temp;
} }
/*
* Same as above, but touch the window first so everything is redrawn.
*/
void edit_refresh_clearok(void)
{
clearok(edit, TRUE);
edit_refresh();
clearok(edit, FALSE);
}
/* /*
* Nice generic routine to update the edit buffer given a pointer to the * Nice generic routine to update the edit buffer given a pointer to the
* file struct =) * file struct =)
@ -1074,7 +1084,7 @@ int total_refresh(void)
clearok(edit, FALSE); clearok(edit, FALSE);
clearok(topwin, FALSE); clearok(topwin, FALSE);
clearok(bottomwin, FALSE); clearok(bottomwin, FALSE);
edit_refresh();
return 1; return 1;
} }