macvim-dev / macvim-dev/macvim
Bad interaction between guioptions=! and TerminalOpen
オープン
まだ誰も着手していません。
- 主要言語
- Vim Script
- スター
- 7.9k
- フォーク
- 691
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
When external commands are executed in a terminal window and a TerminalOpen autocommand is defined, the command may affect the current window.
To Reproduce
- Run
mvim -N -i NONE -u vimrcwherevimrchas the following content:
set number
autocmd TerminalOpen * set nonumber
set guioptions=!
- Type
:!ls(or any other:!command) - You should see the line numbers have disappeared from the current window.
I am expecting that the external command is executed in a different window, hence options set in the terminal window shouldn't affect the current window, as is the case if you remove ! from guioptions.
- Vim 8.1.950
- OS: macOS 10.14
- Terminal: GUI
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
提供された vimrc と :!ls で問題を再現し、guioptions=! がターミナルウィンドウをどのように作成または使用するのか、また TerminalOpen autocommand がどのように適用されるのかを追跡します。完了条件は、autocommand がターミナルウィンドウだけを変更し、現在のウィンドウでは行番号が有効なままになることです。guioptions=! と ! を付けない対照ケースの両方を確認してください。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- vim
- 領域
- desktop-dev
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100