Galooshi / Galooshi/vim-import-js

Restoring cursor position can be incorrect if cursor starts inside import block

Open
#21 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Vim Script
Stars
159
Forks
18
PR merge metrics
No merged PRs in 30d

Description

When replacing the buffer we track the cursor position and then simply move it by the number of lines that were added. If you happen to be in the imports block, this can be incorrect.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.