Skip to content

Commit 4b1b5f7

Browse files
committed
A small fix to surroud
1 parent 84f8cca commit 4b1b5f7

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@ When you enter insert mode, you will type in your actual current system layout/l
170170

171171
## Changelog
172172

173+
### 0.4.1
174+
- Small fix in `surround`.
175+
173176
### 0.4.0
174177
- `surround` and `pasteinto` commands (thanks @Andr3wD!)
175178
- Vim chord display (thanks @Andr3wD!)

main.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export default class VimrcPlugin extends Plugin {
132132

133133
// Record the position of selections
134134
CodeMirror.on(cmEditor, "cursorActivity", async (cm: any) => {
135-
this.currentSelection = cmEditor.listSelections()[0]
135+
this.currentSelection = cm.listSelections()[0]
136136
})
137137

138138
vimCommands.split("\n").forEach(

manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "obsidian-vimrc-support",
33
"name": "Vimrc Support",
4-
"version": "0.4.0",
4+
"version": "0.4.1",
55
"description": "Auto-load a startup file with Obsidian Vim commands.",
66
"author": "esm",
77
"authorUrl": "",

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "obsidian-vimrc-support",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"description": "Auto-load a startup file with Obsidian Vim commands.",
55
"main": "main.js",
66
"scripts": {

0 commit comments

Comments
 (0)