justinmk / vim-dirvish

Directory viewer for Vim :zap:
Other
1.18k stars 64 forks source link

fix(mappings): visual mode commands only operate on a single selected file #245

Closed monadnocking closed 5 months ago

monadnocking commented 5 months ago

Problem: {Visual}O and similar commands only operate on a single file after 6233243 (fix(mappings): prefer <cmd>, drop <silent> #235, 2022-12-08).

Solution: Use line('v') and line('.') to get the visual range when the <Cmd> mappings are used.

justinmk commented 5 months ago

Thank you!