Char
Char
Did you open a file or directory **two level** under the initial directory? To demonstrate the problem you also can run `echo glob("c:\projects\*')` the results should have lowercase prefix. That...
I tried it again and it does not always happen. This is a sample directory structure where the file cannot be opened: ``` C:\ (or any drive) projects\ pip\ test\...
It seems like this behavior is affected by `autochdir`. If I don't set `autochdir` the problem does not happen. If I set `autochdir`, and run `ed c:\projects\pip`, then `cwd` is...
So like I wrote, this is caused by `s:TreeDirNode._glob` which uses absolute or relative path depending on whether the path is under `cwd` or not. And that causes case mismatch,...
The problem can also be fixed by not trying to make glob return relative path ```diff diff --git a/lib/nerdtree/tree_dir_node.vim b/lib/nerdtree/tree_dir_node.vim index f5f7682..3b1823c 100644 --- a/lib/nerdtree/tree_dir_node.vim +++ b/lib/nerdtree/tree_dir_node.vim @@ -273,16 +273,18...
This comparison in `function! s:TreeDirNode._glob(pattern, all)` could also be problematic if `self.path.str()` is lowercase. `if self.path.str() ==# getcwd()`
I am using GVim 8.2.2825. I feel that you don't get the idea of what I was trying to explain here. The problem is not with using relative path (although...
Basic support for match/case ```diff diff --git a/syntax/python.vim b/syntax/python.vim index 2524aba..3d49f51 100644 --- a/syntax/python.vim +++ b/syntax/python.vim @@ -81,6 +81,7 @@ if s:Enabled('g:python_highlight_class_vars') endif syn keyword pythonRepeat for while syn keyword...
So match and case can be variable/function/class name outside match expression. Can match pattern have higher priorities? We can make those syntax have higher priorities than match/case syntax.
Example code to handle `Ctrl+c` using `win32api.SetConsoleCtrlHandler` (install `pywin32` first or use [`ctypes`](https://github.com/zeromq/pyzmq/blob/1d3b3eec41d18e6a8ab8e03fdc7c8061fe09e9c7/zmq/utils/win32.py#L14)). ```python from engineio.client import signal_handler from win32api import SetConsoleCtrlHandler import socketio sio = socketio.Client() @sio.event def connect():...