Skip to content

Commit 77ac2c1

Browse files
committed
(edit_find): reduce variable scope.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
1 parent 9f4020a commit 77ac2c1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/editor/editsearch.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,6 @@ edit_find (edit_search_status_msg_t *esm, gsize *len)
288288
WEdit *edit = esm->edit;
289289
edit_buffer_t *buf = &edit->buffer;
290290
off_t search_start = edit->search_start;
291-
off_t search_end;
292291
off_t start_mark = 0;
293292
off_t end_mark = buf->size;
294293
gboolean start_from_next_line = FALSE;
@@ -341,7 +340,8 @@ edit_find (edit_search_status_msg_t *esm, gsize *len)
341340
if (edit_search_options.backwards)
342341
{
343342
// backward search
344-
search_end = end_mark;
343+
344+
off_t search_end = end_mark;
345345

346346
if ((edit->search_line_type & MC_SEARCH_LINE_BEGIN) != 0)
347347
search_start =

0 commit comments

Comments
 (0)