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 4df0f90 commit 711cedb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/canvas.sh
Expand Up @@ -210,7 +210,7 @@ function ble/util/c2w+emacs {
return
fi

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

[[ $tIndex ]] || return 0

Expand Down
2 changes: 1 addition & 1 deletion src/color.sh
Expand Up @@ -272,7 +272,7 @@ function ble/color/.color2sgr-impl {
local ccode=$1 prefix=$2 # 3 for fg, 4 for bg
if ((ccode<0)); then
ret=${prefix}9
elif ((ccode<\(_ble_term_colors<16?_ble_term_colors:16\))); then
elif ((ccode<16&&ccode<_ble_term_colors)); then
if ((prefix==4)); then
ret=${_ble_term_sgr_ab[ccode]}
else
Expand Down
4 changes: 2 additions & 2 deletions src/decode.sh
Expand Up @@ -2847,7 +2847,7 @@ function ble/encoding:UTF-8/decode {
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 @@ -2886,7 +2886,7 @@ function ble/encoding:UTF-8/decode {
)
)
)
'))
))

_ble_decode_byte__utf_8__code=$code
_ble_decode_byte__utf_8__mode=$mode
Expand Down
4 changes: 2 additions & 2 deletions src/edit.sh
Expand Up @@ -2250,10 +2250,10 @@ function ble/widget/.insert-string {

local dx=${#ins}
ble-edit/content/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=
}

Expand Down

0 comments on commit 711cedb

Please sign in to comment.