Skip to content

Commit

Permalink
Fix a bug that lost a line break from yanked value
Browse files Browse the repository at this point in the history
  • Loading branch information
tadashi-aikawa committed Jul 5, 2022
1 parent f613efe commit 0e90eda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -464,8 +464,8 @@ export default class VimrcPlugin extends Plugin {
const buf = currentYankBuffer[0]
if (buf !== this.lastYankBuffer[0]) {
await win.navigator.clipboard.writeText(buf);
this.lastSystemClipboard = buf
this.lastYankBuffer = currentYankBuffer
this.lastSystemClipboard = await win.navigator.clipboard.readText()
return
}

Expand Down

0 comments on commit 0e90eda

Please sign in to comment.