Open hokorobi opened 1 year ago
An error occurs if there is a newline in the dictionary of the Vim9 script loaded in the hooks_file. Code of Cause in Minimal Config:
g:quickrun_config._ = { 'runner': 'job', 'outputter': 'buffer', 'outputter/buffer/close_on_empty': 1, }
Steps to reproduce the behavior:
:call dein#recache_runtimepath()
:quit
:set ft=vim
echo 'vim'
:QuickRun
:messages
No error.
If applicable, add screenshots to help explain your problem.
Please complete the following information, when reporting bugs related to the Dein.vim.
~/vimfiles/vimrc-min-dein-hooks_file-vim9
set nocompatible set runtimepath+=C:\Users\hokorobi\_vim\dein\repos\github.com\Shougo\dein.vim let g:testdic = {} if dein#min#load_state(expand('~/_vim/dein')) call dein#begin('~/_vim/dein') call dein#add('thinca/vim-quickrun', #{ \ on_cmd: 'QuickRun', \ hooks_file: '~/vimfiles/vimrc-min-dein-hooks_file-vim9_quickrun.vim', \ }) call dein#end() call dein#save_state() endif filetype plugin indent on syntax enable
~/vimfiles/vimrc-min-dein-hooks_file-vim9_quickrun.vim
" hook_source {{{ vim9script g:quickrun_config = get(g:, 'quickrun_config', {}) g:quickrun_config._ = { 'runner': 'job', 'outputter': 'buffer', 'outputter/buffer/close_on_empty': 1, } " }}}
OH no.
https://github.com/vim/vim/pull/12269 is needed.
https://github.com/vim/vim/pull/12269 works. Please test.
Thank you! I will try to use it when PR is merged.
Description
An error occurs if there is a newline in the dictionary of the Vim9 script loaded in the hooks_file. Code of Cause in Minimal Config:
To Reproduce
Steps to reproduce the behavior:
:call dein#recache_runtimepath()
:quit
:set ft=vim
echo 'vim'
:QuickRun
:messages
.Expected behavior
No error.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop:
Please complete the following information, when reporting bugs related to the Dein.vim.
Minimal Config
~/vimfiles/vimrc-min-dein-hooks_file-vim9
~/vimfiles/vimrc-min-dein-hooks_file-vim9_quickrun.vim