Skip to content

Commit

Permalink
Fix mouse event above fzf finder
Browse files Browse the repository at this point in the history
Fix #2949
  • Loading branch information
junegunn committed Nov 18, 2022
1 parent 1bebd6f commit a38b63b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ CHANGELOG
0.35.1
------
- Fixed a bug where fzf with `--tiebreak=chunk` crashes on inverse match query
- Fixed a bug where clicking above fzf would paste escape sequences

0.35.0
------
Expand Down
2 changes: 1 addition & 1 deletion src/tui/light.go
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ func (r *LightRenderer) mouseSequence(sz *int) Event {
t := atoi(elems[0], -1)
x := atoi(elems[1], -1) - 1
y := atoi(elems[2], -1) - 1 - r.yoffset
if t < 0 || x < 0 || y < 0 {
if t < 0 || x < 0 {
return Event{Invalid, 0, nil}
}
*sz += end + 1
Expand Down

0 comments on commit a38b63b

Please sign in to comment.