Skip to content

Commit

Permalink
Do not hardcode the tsm delimiter
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertAudi committed Mar 31, 2019
1 parent fb861c1 commit b4bc7a5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/commands/list.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function __tsm::commands::list() {
local -A session_registry

for f in $session_files; do
while IFS=$'\t' read session_name window_name dir; do
while IFS=$__tsm_tmux_delimiter read session_name window_name dir; do
windows_count+=1
if ! (( ${+session_registry[$session_name]} )); then
session_registry[$session_name]=$((session_registry[$session_name] + 1))
Expand Down
2 changes: 1 addition & 1 deletion src/commands/restore.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function __tsm::commands::restore() {

dimensions="$(__tsm::utils::dimensions_parameters)"

while IFS=$'\t' read session_name window_name dir; do
while IFS=$__tsm_tmux_delimiter read session_name window_name dir; do
if [[ -d "$dir" && "$window_name" != "log" && "$window_name" != "man" ]]; then
if __tsm::helpers::session_exists "$session_name"; then
__tsm::helpers::add_window "$session_name" "$window_name" "$dir"
Expand Down
2 changes: 1 addition & 1 deletion src/commands/show.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function __tsm::commands::show() {

integer -l sessions_count windows_count
local -A session_registry
while IFS=$'\t' read session_name window_name dir; do
while IFS=$__tsm_tmux_delimiter read session_name window_name dir; do
if (( ${+session_registry[$session_name]} )); then
session_registry[$session_name]=$((session_registry[$session_name] + 1))
else
Expand Down

0 comments on commit b4bc7a5

Please sign in to comment.