gui: Make $first a local variable of _get_subtree().
authorAndre Noll <maan@tuebingen.mpg.de>
Mon, 1 Sep 2014 22:20:21 +0000 (00:20 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sat, 27 Sep 2014 23:02:00 +0000 (23:02 +0000)
Apparently this was missed when the function was introduced. The
variable is only referenced in _get_subtree().

gui

diff --git a/gui b/gui
index db81f7f..336d154 100644 (file)
--- a/gui
+++ b/gui
@@ -79,7 +79,7 @@ _get_level()
 _get_subtree()
 {
        local tree="$1" root="${2%/}"
-       local TAB='     '
+       local first TAB='       '
 
        first="$(grep -n "$TAB\{1,\}$root/" <<< "$tree")"
        [[ -z "$first" ]] && return