Skip to content

Commit 2867398

Browse files
committed
make space surrounding separator part of separator def
1 parent b6fb501 commit 2867398

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

segments/mode_indicator.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ COPY_MODE_ENABLED_DEFAULT="true"
3939
COPY_MODE_TEXT_DEFAULT="copy"
4040
COPY_MODE_TEXT_COLOR_DEFAULT="$TMUX_POWERLINE_CUR_SEGMENT_FG"
4141

42-
SEPARATOR_TEXT_DEFAULT=""
42+
SEPARATOR_TEXT_DEFAULT=""
4343

4444
generate_segmentrc() {
4545
read -d '' rccontents <<EORC
@@ -61,7 +61,7 @@ export TMUX_POWERLINE_SEG_MODE_INDICATOR_COPY_MODE_ENABLED="${COPY_MODE_ENABLED_
6161
# Copy mode text & color overrides. Defaults to "copy" & the segment foreground color set in the theme used.
6262
export TMUX_POWERLINE_SEG_MODE_INDICATOR_COPY_MODE_TEXT="${COPY_MODE_TEXT_DEFAULT}"
6363
export TMUX_POWERLINE_SEG_MODE_INDICATOR_COPY_MODE_TEXT_COLOR=""
64-
# Separator text override. Defaults to "".
64+
# Separator text override. Defaults to "".
6565
export TMUX_POWERLINE_SEG_MODE_INDICATOR_SEPARATOR_TEXT="${SEPARATOR_TEXT_DEFAULT}"
6666
EORC
6767
echo "$rccontents"
@@ -103,7 +103,7 @@ __normal_and_prefix_mode_indicator() {
103103
if [ -z "$segment" ]; then
104104
segment+="$normal_and_prefix_indicator"
105105
else
106-
segment+=" $separator $normal_and_prefix_indicator"
106+
segment+="$separator$normal_and_prefix_indicator"
107107
fi
108108
}
109109

@@ -130,7 +130,7 @@ __mouse_mode_indicator() {
130130
if [ -z "$segment" ]; then
131131
segment+="$mouse_indicator"
132132
else
133-
segment+=" $separator $mouse_indicator"
133+
segment+="$separator$mouse_indicator"
134134
fi
135135
}
136136

@@ -152,7 +152,7 @@ __copy_mode_indicator() {
152152
if [ -z "$segment" ]; then
153153
segment+="#{?pane_in_mode,$copy_mode,}"
154154
else
155-
segment+="#{?pane_in_mode, $separator $copy_mode,}"
155+
segment+="#{?pane_in_mode,$separator$copy_mode,}"
156156
fi
157157
}
158158

0 commit comments

Comments
 (0)