macvim-dev / macvim-dev/macvim

Syntax highlight getting lost when jumping down large file

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

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

主要言語
Vim Script
スター
7.9k
フォーク
691
PR マージ指標
30日以内にマージされた PR はありません

説明

I am writing a book using Asciidoc format. You can find the Asciidoc file here:https://github.com/krlawrence/graph/tree/master/book

I am using MacVim version: 8.0.1420

I have not noticed this problem as much in earlier versions of MacVim and it is not an issue editing the same file on Windows using Gvim.

If I load the file and set the syntax to Asciidoc the highlighting looks fine. However if I then do a search that requires jumping way down the file or if I just manually jump to the end of the file, syntax highlighting is lost. Doing a syntax sync fromstart does not bring it back and setting the syntax back to Asciidoc again only seems to work if I jump back to the top of the file and manually scroll down the file. As soon as I jump down the file again same problem. This seems to have started happening since I updated to this version of MacVim.

My OS is MacOS 10.13.3

I have sometimes seen this behaviour before but never until now encountered a case where doing a syntax sync fromstart does not fix it.

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

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

はじめの一歩

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

調査の方向性

まず、macOS 上の MacVim 8.0.1420 を使い、リンクされた book ディレクトリ内の Asciidoc ファイルで報告内容を再現します。Asciidoc の読み込み、末尾へのジャンプ、syntax sync fromstart の実行、先頭からのスクロール後の構文ハイライトを比較します。大きくジャンプした後もハイライトが正しい状態を保ち、報告された同期コマンドが期待どおりに動作すれば完了です。

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

評価

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

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

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