New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'omnifunc' の第一引数 a:findstart の型に一貫性がない #1168
Comments
最初に作ったときは数字の 1 のつもりで作りました。 どういう経緯で |
v7.3.614 |
https://gist.github.com/machakann/ef78414c6fd696ebc68987cfcd85ac77 |
最初から |
こっちのほうが根本的解決みたいですね。 @ichizok さんのパッチでお願いします。 |
PRed. |
v8.1.0053 |
8.1.0053 動作上は問題ないけど、testdir/test_ins_complete.vim に足されたテストの (追記: うぉー。被ったw) |
ありがとうございました! |
@h-east ありがとうございます。追加で修正出しました |
8.1.0055 |
質問・報告の内容
確認方法
:source
コマンドで読み込むインサートモードに入り、
<C-x><C-o>
と入力ノーマルモードに戻り
:message
コマンドで出力を確認する期待するのは
という出力ですが、実際には
と、一回目の呼び出しでは数字の
1
ではなく文字列の'1'
が渡されています。:help complete-functions
では a:findstart が数値とは明言されていませんが、数値を期待するのが自然かと思います。また、少なくとも数値か文字列かどちらかに統一されている方がよいと思います。Vimのバージョン
8.1.10
OSの種類/ディストリ/バージョン
The text was updated successfully, but these errors were encountered: