mirror of
git://git.sv.gnu.org/nano.git
synced 2024-12-28 13:19:48 +03:00
Fixing Savannah bug #47127 the proper way,
eliding two silly calls of edit_redraw(). git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5650 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
2163d961a1
commit
56cfab3df6
@ -1,3 +1,7 @@
|
||||
2016-02-18 Benno Schulenberg <bensberg@justemail.net>
|
||||
* src/search.c (do_replace_loop), src/text.c (do_int_spell_fix),
|
||||
src/winio.c (edit_refresh): Fix Savannah bug #47127 the proper way.
|
||||
|
||||
2016-02-16 Benno Schulenberg <bensberg@justemail.net>
|
||||
* src/files.c (initialize_buffer_text): Delete redundant assignment.
|
||||
|
||||
|
@ -708,10 +708,7 @@ ssize_t do_replace_loop(
|
||||
xpt, strnlenpt(openfile->current->data,
|
||||
openfile->current_x + match_len) - xpt, FALSE);
|
||||
|
||||
/* If the match is offscreen, center it; otherwise, let it be. */
|
||||
edit_redraw(openfile->current, openfile->placewewant);
|
||||
|
||||
/* Now refresh the entire edit window, in case it scrolled. */
|
||||
/* Refresh the edit window, scrolling it if necessary. */
|
||||
edit_refresh();
|
||||
|
||||
/* Don't show cursor, to not distract from highlighted match. */
|
||||
|
@ -2414,7 +2414,6 @@ bool do_int_spell_fix(const char *word)
|
||||
xpt, strnlenpt(openfile->current->data,
|
||||
openfile->current_x + match_len) - xpt, FALSE);
|
||||
|
||||
edit_redraw(openfile->current, openfile->placewewant);
|
||||
edit_refresh();
|
||||
|
||||
do_replace_highlight(TRUE, exp_word);
|
||||
|
@ -2998,7 +2998,7 @@ void edit_refresh(void)
|
||||
#endif
|
||||
|
||||
/* Make sure the current line is on the screen. */
|
||||
edit_update(ISSET(SMOOTH_SCROLL) ? NONE : CENTER);
|
||||
edit_update((ISSET(SMOOTH_SCROLL) && !focusing) ? NONE : CENTER);
|
||||
}
|
||||
|
||||
foo = openfile->edittop;
|
||||
|
Loading…
Reference in New Issue
Block a user