lf: remove old $EMBEDDED test
This commit is contained in:
parent
6b1d52807f
commit
bb80d6e103
|
@ -156,8 +156,8 @@ cmd find_word ${{
|
||||||
row="$(echo "$res" | cut -d':' -f2)"
|
row="$(echo "$res" | cut -d':' -f2)"
|
||||||
column="$(echo "$res" | cut -d':' -f3)"
|
column="$(echo "$res" | cut -d':' -f3)"
|
||||||
if [ -n "$res" ]; then
|
if [ -n "$res" ]; then
|
||||||
if [ "$EDITOR" = "nvim" ] || [ "$EDITOR" = "vim" ] && [ -n "$EMBEDDED" ]; then
|
if [ "$EDITOR" = "nvim" ] || [ "$EDITOR" = "vim" ]; then
|
||||||
lf -remote "send $id \$$EDITOR +'call cursor($row, $column)' -- $([ -n "$EMBEDDED" ] && echo "--") '$file'"
|
lf -remote "send $id \$$EDITOR +'call cursor($row, $column)' -- '$file'"
|
||||||
else
|
else
|
||||||
lf -remote "send $id \$$EDITOR '$file'"
|
lf -remote "send $id \$$EDITOR '$file'"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue