Skip to content

Commit

Permalink
edit (ble/widget/kill-forward-logical-line): fix undeleted newlines a…
Browse files Browse the repository at this point in the history
…t EOL
  • Loading branch information
akinomyoga committed Jan 22, 2021
1 parent 66564e1 commit 09cf7f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion memo/ChangeLog.md
Expand Up @@ -24,7 +24,8 @@
- edit (command-help): work around the Bash bug that tempenv vanishes with `builtin eval` `#D1438` 8379d4a
- global: suppress missing locale errors (reported by 3ximus) `#D1440` 4d3c595
- edit (sword): fix definition of `sword` (shell words) `#D1441` f923388
- edit (kill/copy): combine multiple kills and copies (suggested by 3ximus) `#D1443` 0000000
- edit (kill/copy): combine multiple kills and copies (suggested by 3ximus) `#D1443` 66564e1
- edit (`kill-forward-logical-line`): fix a bug not deleting newline at the end of the line `#D1443` 0000000

## Internal changes and fixes

Expand Down
2 changes: 1 addition & 1 deletion src/edit.sh
Expand Up @@ -3708,7 +3708,7 @@ function ble/widget/kill-forward-logical-line {
else
local ret; ble-edit/content/find-logical-eol
# 行末にいるとき無引数で呼び出すと、直後の改行を削除
((ret<${#_ble_edit_ind}&&_ble_edit_ind==ret&&ret++))
((ret<${#_ble_edit_str}&&_ble_edit_ind==ret&&ret++))
fi
ble/widget/.kill-range "$_ble_edit_ind" "$ret"
}
Expand Down

0 comments on commit 09cf7f1

Please sign in to comment.