Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
hanspr committed Sep 5, 2021
2 parents a4a4c1d + c9b57b6 commit 4cdfe4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -1312,7 +1312,7 @@ func (v *View) CutLine(usePlugin bool) bool {
text := v.Cursor.GetSelection()
Clip.AppendTo(&text, "local")
}
} else if time.Since(v.lastCutTime)/time.Second > 10*time.Second || v.freshClip {
} else if time.Since(v.lastCutTime)/time.Second > 10*time.Second || !v.freshClip {
v.Copy(true)
}
v.freshClip = true
Expand Down
2 changes: 1 addition & 1 deletion util.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ func BracePairsAreBalanced(str string) int {
c := str[i : i+1]
if c == "{" || c == "[" || c == "(" {
b++
if f {
if !f {
f = true
if w {
w = false
Expand Down

0 comments on commit 4cdfe4c

Please sign in to comment.