cosmetic fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2026 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Этот коммит содержится в:
родитель
0ff01a92bc
Коммит
1758640682
12
src/search.c
12
src/search.c
@ -658,7 +658,7 @@ ssize_t do_replace_loop(const char *needle, filestruct *real_current,
|
|||||||
{
|
{
|
||||||
ssize_t numreplaced = -1;
|
ssize_t numreplaced = -1;
|
||||||
size_t match_len;
|
size_t match_len;
|
||||||
size_t old_pww = placewewant, current_x_save = *real_current_x;
|
size_t pww_save = placewewant, current_x_save = *real_current_x;
|
||||||
const filestruct *current_save = real_current;
|
const filestruct *current_save = real_current;
|
||||||
bool replaceall = FALSE;
|
bool replaceall = FALSE;
|
||||||
#ifdef HAVE_REGEX_H
|
#ifdef HAVE_REGEX_H
|
||||||
@ -748,8 +748,8 @@ ssize_t do_replace_loop(const char *needle, filestruct *real_current,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!replaceall) {
|
if (!replaceall) {
|
||||||
edit_redraw(current_save, old_pww);
|
edit_redraw(current_save, pww_save);
|
||||||
old_pww = placewewant;
|
pww_save = placewewant;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Record for the return value that we found the search string. */
|
/* Record for the return value that we found the search string. */
|
||||||
@ -1042,7 +1042,7 @@ void do_find_bracket(void)
|
|||||||
char ch_under_cursor, wanted_ch;
|
char ch_under_cursor, wanted_ch;
|
||||||
const char *pos, *brackets = "([{<>}])";
|
const char *pos, *brackets = "([{<>}])";
|
||||||
char regexp_pat[] = "[ ]";
|
char regexp_pat[] = "[ ]";
|
||||||
size_t current_x_save, old_pww;
|
size_t current_x_save, pww_save;
|
||||||
int count = 1;
|
int count = 1;
|
||||||
long flags_save;
|
long flags_save;
|
||||||
filestruct *current_save;
|
filestruct *current_save;
|
||||||
@ -1060,7 +1060,7 @@ void do_find_bracket(void)
|
|||||||
|
|
||||||
current_save = current;
|
current_save = current;
|
||||||
current_x_save = current_x;
|
current_x_save = current_x;
|
||||||
old_pww = placewewant;
|
pww_save = placewewant;
|
||||||
flags_save = flags;
|
flags_save = flags;
|
||||||
SET(USE_REGEXP);
|
SET(USE_REGEXP);
|
||||||
|
|
||||||
@ -1092,7 +1092,7 @@ void do_find_bracket(void)
|
|||||||
/* Found complementary bracket. */
|
/* Found complementary bracket. */
|
||||||
else if (--count == 0) {
|
else if (--count == 0) {
|
||||||
placewewant = xplustabs();
|
placewewant = xplustabs();
|
||||||
edit_redraw(current_save, old_pww);
|
edit_redraw(current_save, pww_save);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user