Stéphane Glondu pushed to branch upstream at Debian OCaml Maintainers / lambda-term
Commits: ca5e6120 by Stephane Glondu at 2023-08-27T22:01:36+02:00 New upstream version 3.3.2 - - - - - 2 changed files: - CHANGES.md - src/lTerm_vi.ml Changes: ===================================== CHANGES.md ===================================== @@ -1,3 +1,8 @@ +3.3.2 (2023-08-09) +------------------ + +* `LTerm_vi`: fix a downward-action issue when act in empty content + 3.3.1 (2022-07-04) ------------------ ===================================== src/lTerm_vi.ml ===================================== @@ -1,7 +1,7 @@ (* * lTerm_vi.ml * ------------ - * Copyright : (c) 2020, ZAN DoYe <[email protected]> + * Copyright : (c) 2023, ZAN DoYe <[email protected]> * Licence : BSD3 * * This file is a part of Lambda-Term. @@ -242,7 +242,7 @@ module Query = struct let cursor= Zed_edit.cursor ctx in let count= Zed_lines.count lines in if index = Zed_lines.count lines then - Zed_rope.length text - 1 + max 0 (Zed_rope.length text - 1) else begin let stop = if index + delta >= count then View it on GitLab: https://salsa.debian.org/ocaml-team/lambda-term/-/commit/ca5e61207ef1af9ab44531504aac666a71025e15 -- View it on GitLab: https://salsa.debian.org/ocaml-team/lambda-term/-/commit/ca5e61207ef1af9ab44531504aac666a71025e15 You're receiving this email because of your account on salsa.debian.org.

