Problem: ml_get error with :psearch in buffer without a name. (Dominique
Pelle)
Solution: Use the buffer number instead of the file name. Check the cursor
position.
test_perl \
test_plus_arg_edit \
test_popup \
+ test_preview \
test_profile \
test_put \
test_python2 \
if (g_do_tagpreview != 0)
{
if (!GETFILE_SUCCESS(getfile(
- 0, curwin_save->w_buffer->b_fname,
+ curwin_save->w_buffer->b_fnum, NULL,
NULL, TRUE, lnum, FALSE)))
break; /* failed to jump to file */
}
#endif
setpcmark();
curwin->w_cursor.lnum = lnum;
+ check_cursor();
}
else
{
test_packadd.res \
test_paste.res \
test_perl.res \
+ test_preview.res \
test_profile.res \
test_python2.res \
test_python3.res \
--- /dev/null
+" Tests for the preview window
+
+func Test_Psearch()
+ " this used to cause ml_get errors
+ help
+ let wincount = winnr('$')
+ 0f
+ ps.
+ call assert_equal(wincount + 1, winnr('$'))
+ pclose
+ call assert_equal(wincount, winnr('$'))
+ bwipe
+endfunc
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 762,
/**/
761,
/**/