Shougo / denite.nvim

:dragon: Dark powered asynchronous unite all interfaces for Neovim/Vim8
Other
2.06k stars 215 forks source link

<denite:assign_previous_text> is incorrect after the first execution #547

Closed mMontu closed 5 years ago

mMontu commented 5 years ago

Problems summary

Wrong result for <denite:assign_previous_text> and <denite:assign_previous_matched_text>. After typing a match in :Denite <source> the text returned with up or Ctrl+p is wrong after the first execution.

Expected

<denite:assign_previous_text> and <denite:assign_previous_matched_text> returning always the same value until a different a match is selected.

Environment Information (Required!)

Provide a minimal init.vim with less than 50 lines (Required!)

Reproduced without any init file.

How to reproduce problems from neovim startup (Required!)

$ touch abc
$ touch def
$ gvim -u NONE -U NONE -N -i NONE
set nocompatible
let &rtp.=','.$HOME.'/.vim/bundle/denite.nvim'
source ~/.vim/bundle/denite.nvim/plugin/denite.vim
:Denite file/rec
abc<CR>
:Denite file/rec
def<CR>
:Denite file/rec
<up> --> shows 'def', as expected
<CR>
:Denite file/rec
<up> --> shows 'abc', expected 'def' again

Note it is the behavior doesn't change if Ctrl+p is used instead of up, or if the <CR> is replaced with <Esc> after the previous text is retrieved.

Shougo commented 5 years ago

Reproduced.

mMontu commented 5 years ago

Great!