Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: junegunn/fzf
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 4e5e925e39ead3c04865a1d9595715905ef276d2
Choose a base ref
...
head repository: junegunn/fzf
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3ba82b6d87348b119f9a7fd168ad8a597a18b4b2
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Feb 27, 2025

  1. Update README

    junegunn committed Feb 27, 2025
    Copy the full SHA
    e771c5d View commit details
  2. Copy the full SHA
    3ba82b6 View commit details
Showing with 6 additions and 2 deletions.
  1. +1 −1 README.md
  2. +5 −1 src/terminal.go
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@
</a>

### [Warp, the intelligent terminal for developers](https://www.warp.dev/?utm_source=github&utm_medium=referral&utm_campaign=fzf)
[Available for MacOS and Linux](https://www.warp.dev/?utm_source=github&utm_medium=referral&utm_campaign=fzf)<br>
[Available for MacOS, Linux, & Windows](https://www.warp.dev/?utm_source=github&utm_medium=referral&utm_campaign=fzf)<br>

</div>
<hr>
6 changes: 5 additions & 1 deletion src/terminal.go
Original file line number Diff line number Diff line change
@@ -2286,7 +2286,11 @@ func (t *Terminal) move(y int, x int, clear bool) {
}

func (t *Terminal) truncateQuery() {
t.input, _ = t.trimRight(t.input, maxPatternLength)
// We're limiting the length of the query not to make fzf unresponsive when
// the user accidentally pastes a huge chunk of text. Therefore, we're not
// interested in the exact display width of the query. We just limit the
// number of runes.
t.input = t.input[:util.Min(len(t.input), maxPatternLength)]
t.cx = util.Constrain(t.cx, 0, len(t.input))
}