Files
macvim-mirror/runtime/autoload/macvim.vim
Yee Cheng Chin 2b0b4e291a Use getregion() for showing definition of selected texts
Previously, MacVim added custom VimScript to query what the user
selected text is before calling `showdefinition` on it. Since Vim has
since implemented the `getregion()` API that provides that info
natively, use that API instead of the custom implementation.

Also, the previous implementation was broken when dealing with wide
characters where it would select more characters than necessary. Using
the native `getregion()` is much more robust and handle those
situations.
2024-10-30 22:00:28 -04:00

3.1 KiB