Stéphane Glondu pushed to branch master at Debian OCaml Maintainers / lambda-term
Commits:
-
ca5e6120
by Stephane Glondu at 2023-08-27T22:01:36+02:00
-
c9145801
by Stephane Glondu at 2023-08-27T22:01:36+02:00
-
274d99fb
by Stephane Glondu at 2023-08-27T22:01:42+02:00
-
75b0cca7
by Stephane Glondu at 2023-08-27T22:05:44+02:00
3 changed files:
Changes:
1 | +3.3.2 (2023-08-09)
|
|
2 | +------------------
|
|
3 | + |
|
4 | +* `LTerm_vi`: fix a downward-action issue when act in empty content
|
|
5 | + |
|
1 | 6 | 3.3.1 (2022-07-04)
|
2 | 7 | ------------------
|
3 | 8 |
1 | +lambda-term (3.3.2-1) unstable; urgency=medium
|
|
2 | + |
|
3 | + * Team upload
|
|
4 | + * New upstream release
|
|
5 | + |
|
6 | + -- Stéphane Glondu <glondu@debian.org> Sun, 27 Aug 2023 22:05:39 +0200
|
|
7 | + |
|
1 | 8 | lambda-term (3.3.1-3) unstable; urgency=medium
|
2 | 9 | |
3 | 10 | * Use ocaml_dune DH buildsystem
|
1 | 1 | (*
|
2 | 2 | * lTerm_vi.ml
|
3 | 3 | * ------------
|
4 | - * Copyright : (c) 2020, ZAN DoYe <zandoye@gmail.com>
|
|
4 | + * Copyright : (c) 2023, ZAN DoYe <zandoye@gmail.com>
|
|
5 | 5 | * Licence : BSD3
|
6 | 6 | *
|
7 | 7 | * This file is a part of Lambda-Term.
|
... | ... | @@ -242,7 +242,7 @@ module Query = struct |
242 | 242 | let cursor= Zed_edit.cursor ctx in
|
243 | 243 | let count= Zed_lines.count lines in
|
244 | 244 | if index = Zed_lines.count lines then
|
245 | - Zed_rope.length text - 1
|
|
245 | + max 0 (Zed_rope.length text - 1)
|
|
246 | 246 | else begin
|
247 | 247 | let stop =
|
248 | 248 | if index + delta >= count then
|