macvim-dev / macvim-dev/macvim

Bad interaction between guioptions=! and TerminalOpen

オープン
#896 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
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

  1. Run mvim -N -i NONE -u vimrc where vimrc has the following content:
  set number
  autocmd TerminalOpen * set nonumber
  set guioptions=!
  1. Type :!ls (or any other :! command)
  2. 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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

提供された vimrc と :!ls で問題を再現し、guioptions=! がターミナルウィンドウをどのように作成または使用するのか、また TerminalOpen autocommand がどのように適用されるのかを追跡します。完了条件は、autocommand がターミナルウィンドウだけを変更し、現在のウィンドウでは行番号が有効なままになることです。guioptions=!! を付けない対照ケースの両方を確認してください。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
vim
領域
desktop-dev
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。