diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2024-06-12 21:18:02 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2024-06-12 21:18:02 +0900 |
| commit | 0684a20ea3da6100cf43c919d1fcfda3644eb8c1 (patch) | |
| tree | 457a61cebc54d3f07cc614c149a737d456d8a4a9 /src | |
| parent | a1a72bb8d1c759ba0aa204c5e7f135f3a491dd4f (diff) | |
| download | fzf-0684a20ea3da6100cf43c919d1fcfda3644eb8c1.tar.gz | |
Fix invalid mouse offset for --height on Windows
Diffstat (limited to 'src')
| -rw-r--r-- | src/tui/light_windows.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tui/light_windows.go b/src/tui/light_windows.go index b7fc3402..e2a2bbfe 100644 --- a/src/tui/light_windows.go +++ b/src/tui/light_windows.go @@ -139,7 +139,7 @@ func (r *LightRenderer) findOffset() (row int, col int) { if err := windows.GetConsoleScreenBufferInfo(windows.Handle(r.outHandle), &bufferInfo); err != nil { return -1, -1 } - return int(bufferInfo.CursorPosition.X), int(bufferInfo.CursorPosition.Y) + return int(bufferInfo.CursorPosition.Y), int(bufferInfo.CursorPosition.X) } func (r *LightRenderer) getch(nonblock bool) (int, bool) { |
