Fix lint errors
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Junegunn Choi · committed by Junegunn Choi · parent 0c6ead6 · Browse files · 5 files·+9 added−9 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
5 files+9 added−9 removed
- tests:+1 added−1 removed
- other:+8 added−8 removed
Provenance
- Commit
12a280b- Tree
0a1f543- Author
Junegunn Choi <junegunn.c@gmail.com>- Committer
Junegunn Choi <junegunn.c@gmail.com>- Parent
0c6ead6
5 files changed+9 added−9 removed
modified:shell/common.sh+2 added-2 removed
123445667891030 unmodified lines__fzf_defaults() { # $1: Prepend to FZF_DEFAULT_OPTS_FILE and FZF_DEFAULT_OPTS # $2: Append to FZF_DEFAULT_OPTS_FILE and FZF_DEFAULT_OPTS printf '%s\n' "--height ${FZF_TMUX_HEIGHT:-40%} --min-height 20+ --bind=ctrl-z:ignore $1" builtin printf '%s\n' "--height ${FZF_TMUX_HEIGHT:-40%} --min-height 20+ --bind=ctrl-z:ignore $1" command cat "${FZF_DEFAULT_OPTS_FILE-}" 2> /dev/null printf '%s\n' "${FZF_DEFAULT_OPTS-} $2" builtin printf '%s\n' "${FZF_DEFAULT_OPTS-} $2"}
__fzf_exec_awk() { # This function performs `exec awk "$@"` safely by working around awk30 unmodified linesmodified:shell/completion.zsh+2 added-2 removed
100 unmodified lines101 # To modify it, one can edit "common.sh" and run "./update.sh" to apply102 # the changes. See code comments in "common.sh" for the implementation details.103 104 __fzf_defaults() {105- printf '%s\n' "--height ${FZF_TMUX_HEIGHT:-40%} --min-height 20+ --bind=ctrl-z:ignore $1"105+ builtin printf '%s\n' "--height ${FZF_TMUX_HEIGHT:-40%} --min-height 20+ --bind=ctrl-z:ignore $1"106 command cat "${FZF_DEFAULT_OPTS_FILE-}" 2> /dev/null107- printf '%s\n' "${FZF_DEFAULT_OPTS-} $2"107+ builtin printf '%s\n' "${FZF_DEFAULT_OPTS-} $2"108 }109 110 __fzf_exec_awk() {111 if [[ -z ${__fzf_awk-} ]]; then367 unmodified linesmodified:shell/key-bindings.bash+2 added-2 removed
23 unmodified lines24 # To modify it, one can edit "common.sh" and run "./update.sh" to apply25 # the changes. See code comments in "common.sh" for the implementation details.26 27 __fzf_defaults() {28- printf '%s\n' "--height ${FZF_TMUX_HEIGHT:-40%} --min-height 20+ --bind=ctrl-z:ignore $1"28+ builtin printf '%s\n' "--height ${FZF_TMUX_HEIGHT:-40%} --min-height 20+ --bind=ctrl-z:ignore $1"29 command cat "${FZF_DEFAULT_OPTS_FILE-}" 2> /dev/null30- printf '%s\n' "${FZF_DEFAULT_OPTS-} $2"30+ builtin printf '%s\n' "${FZF_DEFAULT_OPTS-} $2"31 }32 33 __fzf_exec_awk() {34 if [[ -z ${__fzf_awk-} ]]; then140 unmodified linesmodified:shell/key-bindings.zsh+2 added-2 removed
43 unmodified lines44 # To modify it, one can edit "common.sh" and run "./update.sh" to apply45 # the changes. See code comments in "common.sh" for the implementation details.46 47 __fzf_defaults() {48- printf '%s\n' "--height ${FZF_TMUX_HEIGHT:-40%} --min-height 20+ --bind=ctrl-z:ignore $1"48+ builtin printf '%s\n' "--height ${FZF_TMUX_HEIGHT:-40%} --min-height 20+ --bind=ctrl-z:ignore $1"49 command cat "${FZF_DEFAULT_OPTS_FILE-}" 2> /dev/null50- printf '%s\n' "${FZF_DEFAULT_OPTS-} $2"50+ builtin printf '%s\n' "${FZF_DEFAULT_OPTS-} $2"51 }52 53 __fzf_exec_awk() {54 if [[ -z ${__fzf_awk-} ]]; then144 unmodified linesmodified:test/test_core.rb+1 added-1 removed
1189 unmodified lines1190 tmux.until { |lines| assert lines.any_include?('9999␊10000') }1191 end1192 1193 def test_freeze_left_tabstop1194- writelines(["1\t2\t3"])1194+ writelines(%W[1\t2\t3])1195 # With --freeze-left 1 and --tabstop=2:1196 # Frozen left: "1" (width 1)1197 # Middle starts with "\t" at prefix width 1, tabstop 2 → 1 space1198 # Then "2" at column 2, next "\t" at column 3 → 1 space, then "3"1258 unmodified lines