Skip to content

Commit

Permalink
fix: regression wrong boolean simplification false statements reverte…
Browse files Browse the repository at this point in the history
…d as true from commit a24af83
  • Loading branch information
hanspr committed Sep 5, 2021
1 parent 361348b commit c9b57b6
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 c9b57b6

Please sign in to comment.