From bb80d6e1037effe540c286fa13cc4cfdc117139b Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Tue, 18 Jun 2024 08:15:01 +0200 Subject: [PATCH] lf: remove old $EMBEDDED test --- .config/lf/lfrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/lf/lfrc b/.config/lf/lfrc index 84518c2f7..2aed00352 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -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