diff options
Diffstat (limited to 'sh')
-rw-r--r-- | sh/functions.sh | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/sh/functions.sh b/sh/functions.sh index 99c937e1..69c73cdc 100644 --- a/sh/functions.sh +++ b/sh/functions.sh @@ -6,22 +6,14 @@ RC_GOT_FUNCTIONS="yes" eindent() { - if [ -n "${RC_EBUFFER}" ] ; then - "${RC_LIBDIR}"/bin/eindent - else - RC_EINDENT=$((${RC_EINDENT:-0} + 2)) - [ "${RC_EINDENT}" -gt 40 ] && RC_EINDENT=40 - export RC_EINDENT - fi + RC_EINDENT=$((${RC_EINDENT:-0} + 2)) + [ "${RC_EINDENT}" -gt 40 ] && RC_EINDENT=40 + export RC_EINDENT } eoutdent() { - if [ -n "${RC_EBUFFER}" ] ; then - "${RC_LIBDIR}"/bin/eoutdent - else - RC_EINDENT=$((${RC_EINDENT:-0} - 2)) - [ "${RC_EINDENT}" -lt 0 ] && RC_EINDENT=0 - fi + RC_EINDENT=$((${RC_EINDENT:-0} - 2)) + [ "${RC_EINDENT}" -lt 0 ] && RC_EINDENT=0 return 0 } |