Prevent $session and $window from leaking out of layout files

This commit is contained in:
2012-04-25 22:57:55 +01:00
parent 9f57a9663a
commit 1cd0c33333

View File

@@ -20,6 +20,7 @@ load_window() {
if [ -f "$file" ]; then
window="$1"
source "$file"
window=""
# Reset `$window_root`.
if [[ "$window_root" != "$session_root" ]]; then
@@ -36,6 +37,7 @@ load_session() {
if [ -f "$file" ]; then
session="$1"
source "$file"
session=
# Reset `$session_root`.
if [[ "$session_root" != "$HOME" ]]; then