comparison src/ex_getln.c @ 14976:676db1b7fc35 v8.1.0499

patch 8.1.0499: :2vimgrep causes an ml_get error commit https://github.com/vim/vim/commit/1c29943416207e21abbc790eaf563b36789170c2 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Oct 28 14:36:09 2018 +0100 patch 8.1.0499: :2vimgrep causes an ml_get error Problem: :2vimgrep causes an ml_get error Solution: Pass tomatch pointer instead of value. (Yegappan Lakshmanan)
author Bram Moolenaar <Bram@vim.org>
date Sun, 28 Oct 2018 14:45:05 +0100
parents 27b9a84395b5
children 7b2dcca9e0c1
comparison
equal deleted inserted replaced
14975:0b92912925c7 14976:676db1b7fc35
481 is_state->incsearch_postponed = FALSE; 481 is_state->incsearch_postponed = FALSE;
482 482
483 if (search_first_line == 0) 483 if (search_first_line == 0)
484 // start at the original cursor position 484 // start at the original cursor position
485 curwin->w_cursor = is_state->search_start; 485 curwin->w_cursor = is_state->search_start;
486 else if (search_first_line > curbuf->b_ml.ml_line_count)
487 {
488 // start after the last line
489 curwin->w_cursor.lnum = curbuf->b_ml.ml_line_count;
490 curwin->w_cursor.col = MAXCOL;
491 }
486 else 492 else
487 { 493 {
488 // start at the first line in the range 494 // start at the first line in the range
489 curwin->w_cursor.lnum = search_first_line; 495 curwin->w_cursor.lnum = search_first_line;
490 curwin->w_cursor.col = 0; 496 curwin->w_cursor.col = 0;