[Git][ocaml-team/lambda-term][upstream] New upstream version 3.4.1
Stéphane Glondu (@glondu) <[email protected]>
| Newsgroups | gmane.linux.debian.devel.ocaml |
|---|---|
| Message-ID | <[email protected]> |
Stéphane Glondu pushed to branch upstream at Debian OCaml Maintainers / lambda-term
Commits:
2805930e by Stephane Glondu at 2026-08-19T07:55:11+02:00
New upstream version 3.4.1
- - - - -
2 changed files:
- CHANGES.md
- src/lTerm_vi.ml
Changes:
=====================================
CHANGES.md
=====================================
@@ -1,3 +1,8 @@
+3.4.1 (2026-08-12)
+------------------
+
+* `LTerm_vi`: fix `prev_word'`, resolve an issue that vi commands `b` words backward and `B` WORDS backward may behave improperly in some cases
+
3.4.0 (2026-04-06)
------------------
=====================================
src/lTerm_vi.ml
=====================================
@@ -340,17 +340,20 @@ module Query = struct
in
let prev= prev_category ~nl_as_sp ~pos ~start text in
1 +
- if category_equal start_category before_start then
- if is_space start_category then
+ if is_space start_category then
+ (* condition 1: start at space, prev -> prev + 1 *)
+ prev_category ~nl_as_sp ~pos:prev ~start text
+ else if prev < pos-1 then
+ (* condition 2: start is not the head of a word, prev + 1 *)
+ prev
+ else
+ let prev= prev_category ~nl_as_sp ~pos:prev ~start text in
+ if is_space before_start then
+ (* condition 3: the char before start is space, prev -> prev -> prev + 1*)
prev_category ~nl_as_sp ~pos:prev ~start text
else
+ (* condition 4: start at the head of o word, prev -> prev + 1 *)
prev
- else if is_space before_start then
- let prev= prev_category ~nl_as_sp ~pos:prev ~start text in
- if prev <= start then prev else
- prev_category ~nl_as_sp ~pos:prev ~start text
- else
- prev_category ~nl_as_sp ~pos:prev ~start text
let prev_word ?multi_line ~pos ~start text=
let prev_category ~nl_as_sp=
View it on GitLab: https://salsa.debian.org/ocaml-team/lambda-term/-/commit/2805930e9ffcfd0c4fedee2d72632159ad781b34
--
View it on GitLab: https://salsa.debian.org/ocaml-team/lambda-term/-/commit/2805930e9ffcfd0c4fedee2d72632159ad781b34
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help