From 2a8e746fe364ee86f25a4c48cef30f501b26ba9f Mon Sep 17 00:00:00 2001 From: Koichi Murase Date: Fri, 3 Mar 2023 16:23:06 +0900 Subject: [PATCH] keymap/vi (expand-range-for-linewise-operator): fix non-extended end point --- ble-edit.sh | 8 ++++---- keymap/vi.sh | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ble-edit.sh b/ble-edit.sh index 7dca419c..ea3ed1ca 100644 --- a/ble-edit.sh +++ b/ble-edit.sh @@ -2104,14 +2104,14 @@ function _ble_edit_str.update-syntax { fi } -## 関数 ble-edit/content/bolp -## 現在カーソルが行頭に位置しているかどうかを判定します。 +## @fn ble-edit/content/bolp +## 現在カーソルが行末に位置しているかどうかを判定します。 function ble-edit/content/eolp { local pos=${1:-$_ble_edit_ind} ((pos==${#_ble_edit_str})) || [[ ${_ble_edit_str:pos:1} == $'\n' ]] } -## 関数 ble-edit/content/bolp -## 現在カーソルが行末に位置しているかどうかを判定します。 +## @fn ble-edit/content/bolp +## 現在カーソルが行頭に位置しているかどうかを判定します。 function ble-edit/content/bolp { local pos=${1:-$_ble_edit_ind} ((pos<=0)) || [[ ${_ble_edit_str:pos-1:1} == $'\n' ]] diff --git a/keymap/vi.sh b/keymap/vi.sh index a74b6262..9023a6d2 100644 --- a/keymap/vi.sh +++ b/keymap/vi.sh @@ -1403,7 +1403,7 @@ function ble/keymap:vi/expand-range-for-linewise-operator { if ((beg