Skip to content

Keypresses doubled when searching with pager #3360

@treytorrez

Description

@treytorrez

What steps will reproduce the bug?

  1. Pass any file in to the pager
  2. Attempt to search the file with /

What happens?
When typing into the search any and all keys pressed are doubled.

...

What did you expect to happen instead?
One keypress to be registered

...

How did you install bat?
WinGet


bat version and environment

Software version

bat 0.25.0 (25f4f96)

Operating system

Windows 6.2.9200

Command-line

C:\Users\USER\AppData\Local\Microsoft\WinGet\Packages\sharkdp.bat_Microsoft.Winget.Source_8wekyb3d8bbwe\bat-v0.25.0-x86_64-pc-windows-msvc\bat.exe .\time.ps1 --diagnostic 

Environment variables

BAT_CACHE_PATH=<not set>
BAT_CONFIG_PATH=<not set>
BAT_OPTS=<not set>
BAT_PAGER=<not set>
BAT_PAGING=<not set>
BAT_STYLE=<not set>
BAT_TABS=<not set>
BAT_THEME=<not set>
COLORTERM=<not set>
LANG=<not set>
LC_ALL=<not set>
LESS=<not set>
MANPAGER=<not set>
NO_COLOR=<not set>
PAGER=<not set>
SHELL=<not set>
TERM=<not set>
XDG_CACHE_HOME=<not set>
XDG_CONFIG_HOME=<not set>

System Config file

Could not read contents of 'C:\ProgramData\bat\config': The system cannot find the path specified. (os error 3).

Config file

Could not read contents of 'C:\Users\USER\AppData\Roaming\bat\config': The system cannot find the path specified. (os error 3).

Custom assets metadata

Could not read contents of 'C:\Users\USER\AppData\Local\bat\metadata.yaml': The system cannot find the path specified. (os error 3).

Custom assets

'C:\Users\USER\AppData\Local\bat' not found

Compile time information

  • Profile: release
  • Target triple: x86_64-pc-windows-msvc
  • Family: windows
  • OS: windows
  • Architecture: x86_64
  • Pointer width: 64
  • Endian: little
  • CPU features: cmpxchg16b,fxsr,sse,sse2,sse3
  • Host: x86_64-pc-windows-msvc

Less version

> C:\Users\USER\.cargo\bin\less.exe --version 
Error: Failed to run dynamic paging

Caused by:
    0: Failed to initialize the terminal
    1: The standard output is not a valid terminal

Command failed with exit code 1.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions