Hi,

On Tue, Nov 22, 2016 at 3:52 AM, btwe <[email protected]> wrote:
> I am not sure if the following is an issue with vim or my plugin. But the
> issue came up between vim 7.4 and 7.9/8.0.
>
> Reproduce:
>

Can you try to reproduce this problem after starting Vim with
"vim -N -u NONE"?

I tried to reproduce this problem using a simple location list grep
(as I don't have the td_vimwiki.py script) and couldn't reproduce
the problem.

>
> Create a location list with lgrep while having a file opened in a buffer
> window.
>
>   let l:grepprg_bak=&grepprg
>   let l:grepformat_bak=&grepformat
>   try
>     let &grepprg="./td_vimwiki.py -o D
>     let &grepformat="%f:%l %m"
>     silent lgrep!
>     redraw!
>     lopen 30
>   finally
>     let &grepprg=l:grepprg_bak
>     let &grepformat=l:grepformat_bak
>   endtry
>
> Symptom:
>
> In v7.4 it works as expected. The location list shows up in split window,
> pressing Enter on an entry opens the file containing the target and
> positions the pointer there.
> In 7.9/8.0 Pressing Enter on an entry, first prints an error message: E924:
> Current window was closed. After that the target file is opened in a new
> buffer, but the pointer is placed at line 1 col 1. Creating the location
> list again and selecting the target of the currently opened buffer works
> again as expected.
>
> Because, I do not know if I did something wrong in my plugin, or a small bug
> made it into vim during the releases, I opened this issue and also kindly
> ask for help if the problem is on my side.
>

Are you using any autocmds/plugins that alter the windows when opening
a file?

- Yegappan

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui