Skip to content

Commit

Permalink
Optimization to not set selection
Browse files Browse the repository at this point in the history
  • Loading branch information
harshad1 committed Jan 27, 2024
1 parent 4d4cccc commit 3842a08
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugin/bullets.vim
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,10 @@ fun! s:get_selection()
endfun

fun! s:set_selection(sel)
if a:se1 == s:get_selection()
return
endif

let l:start_col = strlen(getline(a:sel.start_line)) - a:sel.start_offset
let l:end_col = strlen(getline(a:sel.end_line)) - a:sel.end_offset

Expand Down

0 comments on commit 3842a08

Please sign in to comment.