1
0
Fork 0

lf: remove old $EMBEDDED test

This commit is contained in:
Luca Bilke 2024-06-18 08:15:01 +02:00
parent 58681c13e0
commit 37ccb569bc
No known key found for this signature in database
GPG Key ID: C9E851809C1A5BDE
1 changed files with 2 additions and 2 deletions

View File

@ -156,8 +156,8 @@ cmd find_word ${{
row="$(echo "$res" | cut -d':' -f2)"
column="$(echo "$res" | cut -d':' -f3)"
if [ -n "$res" ]; then
if [ "$EDITOR" = "nvim" ] || [ "$EDITOR" = "vim" ] && [ -n "$EMBEDDED" ]; then
lf -remote "send $id \$$EDITOR +'call cursor($row, $column)' -- $([ -n "$EMBEDDED" ] && echo "--") '$file'"
if [ "$EDITOR" = "nvim" ] || [ "$EDITOR" = "vim" ]; then
lf -remote "send $id \$$EDITOR +'call cursor($row, $column)' -- '$file'"
else
lf -remote "send $id \$$EDITOR '$file'"
fi