mirror of
https://github.com/junegunn/limelight.vim.git
synced 2025-11-08 11:03:48 -05:00
Calling functions in vim using a range with `<line1>,<line2>call ...` makes vim move the cursor to the beginning of the line. This can cause distraction when Limelight is used in conjunction with the insert mode (e.g. when deactivating on `InsertLeave`). This commit makes the `Limelight` command pass the range as parameters to the `execute` function which removes that effect while `Limelight`ening a range still works.