gpakosz / .tmux

🇫🇷 Oh my tmux! My self-contained, pretty & versatile tmux configuration made with ❤️
MIT License
21.73k stars 3.34k forks source link

Weird arrow symbol on the left margin of iTerm2 #654

Closed aofei closed 1 year ago

aofei commented 1 year ago

My setup

iTerm2 Build 3.4.19

$ uname -a
Darwin as-macbook.local 22.5.0 Darwin Kernel Version 22.5.0: Mon Apr 24 20:53:44 PDT 2023; root:xnu-8796.121.2~5/RELEASE_ARM64_T8103 arm64
$ tmux -V
tmux 3.3a
$ cd ~/.tmux && git --no-pager log -n 1 --pretty=oneline
fd1bbb56148101f4b286ddafd98f2ac2dcd69cd8 (HEAD -> master, origin/master, origin/HEAD) fixed TMUX_PROGRAM introspection on FreeBSD, fixes #639

The problem

Please focus on the left margin of the screencast below. You should have observed some weird arrow symbols (>) appearing there, and they don't even disappear when creating new windows. What confuses me is that those weird arrow symbols only appear on the left margin of iTerm2, tmux should not be able to draw in that area (if I understand correctly). And most importantly, this problem only occurs when using gpakosz/.tmux.

https://github.com/gpakosz/.tmux/assets/5037285/deda13bd-9f7c-4ea7-9f13-59690f2f902f

gpakosz commented 1 year ago

Hello @aofei 👋

And most importantly, this problem only occurs when using gpakosz/.tmux.

I'm pretty sure you can reproduce this by keeping the return key pressed in a new iTerm tab / window, without tmux. It may be related to Zsh or Oh My Zsh.

aofei commented 1 year ago

I'm pretty sure you can reproduce this by keeping the return key pressed in a new iTerm tab / window, without tmux.

Yeah, I can reproduce that way. 🙈

It may be related to Zsh or Oh My Zsh.

Well, that explains why I rolled back my gpakosz/.tmux version and it still didn't fix the problem.

Sorry for opening this issue, I'll just close it. 🫡

gpakosz commented 1 year ago

But if you happen to know what's going on I'm interested!

aofei commented 1 year ago

Hi @gpakosz, I found something.

The blue arrow indicates a mark that you can navigate to with cmd-shift-up/down. You can hide them by turning off Prefs>Profiles>Terminal>Show mark indicators.

-- https://gitlab.com/gnachman/iterm2/-/issues/4744#note_12288920

Apparently, I never had Shell Integration for iTerm2 installed, so I didn't see these "Mark Indicators" before. However, there seems to be a bug in iTerm2's latest versions that causes "Mark Indicators" to be displayed regardless of the installation of Shell Integration.

gpakosz commented 1 year ago

Apparently, I never had Shell Integration for iTerm2 installed, so I didn't see these "Mark Indicators" before.

Likely the same for me. I also found https://github.com/ohmyzsh/ohmyzsh/issues/5088.