diff --git a/actions.go b/actions.go index 97cc574..dc881ad 100644 --- a/actions.go +++ b/actions.go @@ -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 diff --git a/util.go b/util.go index d6a70a4..998e490 100644 --- a/util.go +++ b/util.go @@ -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