Skip to content

Commit

Permalink
reset buffer on select
Browse files Browse the repository at this point in the history
  • Loading branch information
gherkins committed Feb 25, 2024
1 parent 5a65350 commit b45d003
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ function App () {

Mousetrap.bind(['shift+up', 'shift+down', 'shift+left', 'shift+right'], async e => {
e.preventDefault()
buffer = null
if (null === selectionFrom.x) {
setSelectionFrom({ x: cursorX, y: cursorY })
}
Expand Down

0 comments on commit b45d003

Please sign in to comment.