antirez / antirez/load81

BUG: Editor failure if too many Backspaces entered rapidly

Abierto
#45 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
C
Estrellas
739
Forks
65
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Last night while editing my joystick.lua example in the editor, I had the situation where I had to delete a lot of lines of code. I positioned the cursor at the very end of the file, and held down the Backspace key. Things started to delete when suddenly the entire screen was filled with junk chars, and the editor GUI state was corrupted. The file buffer was okay - I was able to save and re-edit the file, with some chars deleted (no junk in the file, confirmed at the cmd-line with 'cat joystick.lua' before re-starting LOAD81), but the editor state seemed to not like having to deal with a large number of commented-out lines during the delete process.

This was reproducible - I tried again, deleting 4 long lines that had been previously commented out, and the editor GUI state went corrupt again. Seems to be some interaction between key-repeat/Backspace/comment-line color-encoding.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.