Skip to content

Commit

Permalink
feat: add b:select_start_pos
Browse files Browse the repository at this point in the history
  • Loading branch information
kawarimidoll committed Nov 25, 2023
1 parent df90d61 commit aee9840
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions k.vim
Original file line number Diff line number Diff line change
Expand Up @@ -431,10 +431,12 @@ function! s:set_henkan_select_mark() abort
let [lnum, char_col] = b:henkan_start_pos
let byte_col = s:char_col_to_byte_col(lnum, char_col)
call inline_mark#display(lnum, byte_col, s:select_marker)
let b:select_start_pos = getcharpos('.')[1:2]
endfunction

function! s:clear_henkan_start_pos() abort
let b:henkan_start_pos = [0, 0]
let b:select_start_pos = [0, 0]
call inline_mark#clear()
endfunction

Expand Down

0 comments on commit aee9840

Please sign in to comment.