Skip to content

Commit

Permalink
follow bash syntactic changes on arithmentic command
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Dec 27, 2019
1 parent 3623284 commit 6576660
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions ble-decode.sh
Expand Up @@ -1582,7 +1582,7 @@ function ble-decode-byte+UTF-8 {
local mode="$_ble_decode_byte__utf_8__mode"
local byte="$1"
local cha0= char=
(('
((
byte&=0xFF,
(mode!=0&&(byte&0xC0)!=0x80)&&(
cha0=ble_decode_Erro|code,mode=0
Expand Down Expand Up @@ -1621,7 +1621,7 @@ function ble-decode-byte+UTF-8 {
)
)
)
'))
))

_ble_decode_byte__utf_8__code="$code"
_ble_decode_byte__utf_8__mode="$mode"
Expand Down
8 changes: 4 additions & 4 deletions ble-edit.sh
Expand Up @@ -144,7 +144,7 @@ function .ble-text.c2w+emacs {
# なので ret に予め適当な値を設定しておく事にする。
ret=1

(('
((
code<0xA0?(
ret=1
):(0x3100<=code&&code<0xA4D0||0xAC00<=code&&code<0xD7A4?(
Expand Down Expand Up @@ -177,7 +177,7 @@ function .ble-text.c2w+emacs {
ret=0x01<=al&&al<0x61||0xE0<=al&&al<=0xE7?2:1
):(ret=1))))))))))
)))
'))
))

[[ $tIndex ]] || return 0

Expand Down Expand Up @@ -2276,10 +2276,10 @@ function ble-edit+insert-string {

local dx="${#ins}"
_ble_edit_str.replace _ble_edit_ind _ble_edit_ind "$ins"
(('
((
_ble_edit_mark>_ble_edit_ind&&(_ble_edit_mark+=dx),
_ble_edit_ind+=dx
'))
))
_ble_edit_mark_active=
}
function ble-edit+self-insert {
Expand Down

0 comments on commit 6576660

Please sign in to comment.