Mercurial > vim
view runtime/autoload/dist/vim9.vim @ 33929:34c5f47e98ba v9.0.2161
patch 9.0.2161: Vim9: not able to use imported interfaces and classes
Commit: https://github.com/vim/vim/commit/d2e1c83962d4b392d1876d341c739d204553d01b
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Thu Dec 14 19:59:45 2023 +0100
patch 9.0.2161: Vim9: not able to use imported interfaces and classes
Problem: Vim9: not able to use imported interfaces and classes
Solution: Detect imported class/interfaces names correclty
fixes: #13661
closes: #13685
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 14 Dec 2023 20:15:04 +0100 |
parents | 6e3312a7d33e |
children | 465d9dc26f01 |
line wrap: on
line source
vim9script # Vim runtime support library # # Maintainer: The Vim Project <https://github.com/vim/vim> # Last Change: 2023 Oct 25 export def IsSafeExecutable(filetype: string, executable: string): bool var cwd = getcwd() return get(g:, filetype .. '_exec', get(g:, 'plugin_exec', 0)) && (fnamemodify(exepath(executable), ':p:h') !=# cwd || (split($PATH, has('win32') ? ';' : ':')->index(cwd) != -1 && cwd != '.')) enddef # Uncomment this line to check for compilation errors early # defcompile