Skip to content

Commit 2124ed5

Browse files
authored
💥 Insert at cursor position without replacing buffer (#39)
2 parents f8acb21 + b1d0134 commit 2124ed5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/widget.eta

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ _wk_widget() {
3131
reply=("${(@ps:\t:)res}")
3232

3333
if [[ "${reply[(rb:2:)eval:*]}" == 'eval:true' ]]; then
34-
BUFFER=${(e)reply[1]}
34+
BUFFER="${LBUFFER}${(e)reply[1]}${RBUFFER}"
3535
else
36-
BUFFER=${reply[1]}
36+
BUFFER="${LBUFFER}${reply[1]}${RBUFFER}"
3737
fi
3838
CURSOR=${#BUFFER}
3939

0 commit comments

Comments
 (0)