Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong variable selection position at the beginning of the line #347

Closed
A4-Tacks opened this issue Nov 10, 2023 · 0 comments · Fixed by neoclide/coc.nvim#5104
Closed

Wrong variable selection position at the beginning of the line #347

A4-Tacks opened this issue Nov 10, 2023 · 0 comments · Fixed by neoclide/coc.nvim#5104

Comments

@A4-Tacks
Copy link

my snippets define

snippet set "a = b;" w
${1:\$} = ${2};
endsnippet

my script

use x[y]z to selected y

set
# input enter
$[ ]= ;
# expect
[$] = ;

This problem occurs when the area to be selected is at the beginning of the row.

coc-snippets Version: 3.1.10

CocInfo

versions

vim version: VIM - Vi IMproved 9.0 9002070
node version: v21.1.0
coc.nvim version: 0.0.82-3014125 2023-04-11 14:28:54 +0800
coc.nvim directory: /home/lrne/.vim/plugged/coc.nvim
term: dumb
platform: linux

Log of coc.nvim

2023-11-10T16:53:03.657 INFO (pid:9428) [plugin] - coc.nvim initialized with node: v21.1.0 after 382
2023-11-10T16:53:07.655 INFO (pid:9428) [attach] - receive notification: showInfo []

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant