mirror of
https://github.com/atuinsh/atuin.git
synced 2025-02-16 10:30:44 +01:00
address shellcheck false positive
This commit is contained in:
parent
9617f1bab2
commit
3a7b1361f0
@ -70,7 +70,9 @@ _atuin_search() {
|
||||
zle accept-line
|
||||
elif [[ $LBUFFER =~ ^__atuin_edit_at__:([0-9]+):(.*)$ ]]
|
||||
then
|
||||
# shellcheck disable=SC2154 # $match array contains the regexp groups
|
||||
local POS=${match[1]}
|
||||
# shellcheck disable=SC2154 # $match array contains the regexp groups
|
||||
local LINE=${match[2]}
|
||||
LBUFFER="${LINE[0,${POS}]}"
|
||||
RBUFFER="${LINE[$((POS+1)),${#LINE}]}"
|
||||
|
Loading…
Reference in New Issue
Block a user