Skip to content

Commit

Permalink
fix(cursor): ensure normal visual mode for mouse selection (#1463)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiyaowong committed Sep 18, 2023
1 parent d1cbcf9 commit 1b0ea63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cursor_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ export class CursorManager implements Disposable, NeovimRedrawProcessable, Neovi
const visualmode = await this.client.call("visualmode", [1]);
await this.client.call("nvim_buf_set_mark", [bufId, "<", anchor.line + 1, anchor.character, {}]);
await this.client.call("nvim_buf_set_mark", [bufId, ">", active.line + 1, active.character, {}]);
await this.client.input(visualmode === "V" ? "gvv" : "gv");
await this.client.input(visualmode === "V" || visualmode === "\x16" ? "gvv" : "gv");
await this.client.call("winrestview", [{ curswant: active.character }]);
}

Expand Down

0 comments on commit 1b0ea63

Please sign in to comment.