unblevable / quick-scope

Lightning fast left-right movement in Vim
MIT License
1.42k stars 54 forks source link

Disable redraw when using lazyredraw #96

Closed jacob-horton closed 1 year ago

jacob-horton commented 1 year ago

The vim setting lazyredraw is useful to prevent the screen refreshing whilst a macro is being running - it will wait until the macro is finished before redrawing. This can help to speed up macros

Currently, quick-scope calls the redraw function directly. This means that, if qs_highlight_on_keys is set, using these keys during a macro will force a redraw and therefore basically make lazyredraw ineffective

This change checks that lazyredraw is not set before it redraws, which allows macros to still by run quickly using lazyredraw