macvim-dev / macvim-dev/macvim

Syntax highlight getting lost when jumping down large file

Abierto
#634 13 comentarios 2 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Lenguaje dominante
Vim Script
Estrellas
7.9k
Forks
691
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Comienza reproduciendo el informe con el archivo Asciidoc del directorio del libro enlazado, usando MacVim 8.0.1420 en macOS. Compara el resaltado de sintaxis después de cargar Asciidoc, saltar al final, ejecutar syntax sync fromstart y desplazarte desde el principio. Se considera terminado cuando el resaltado sigue siendo correcto después de saltos grandes y el comando de sincronización indicado funciona como se espera.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
macos, vim
Área
desktop, devtools
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.