micro icon indicating copy to clipboard operation
micro copied to clipboard

Micro does not respnoe when edit specific file

Open dustdfg opened this issue 1 year ago • 2 comments

Description of the problem or steps to reproduce

Open it with micro and try to edit. It won't respond anymore and killing terminal doesn't kill micro

tileset_env_test

Specifications

Commit hash: https://github.com/zyedidia/micro/commit/2d82362a6695a7e898455ce016449167ac439ddd OS: Debian12 Terminal: foot,

dustdfg avatar Jan 14 '24 17:01 dustdfg

Duplicate of #2839

There is still an recursion within highlightEmptyRegion() and highlightRegion() due to the "fix" of nested highlights. The same can be reproduced e.g. by using the "NewTab" page of Firefox or some other nested HTML or XML likes where the whole nesting takes place on one line.

This definitely needs a fix to remove this nasty recursion and to improve the performance.

JoeKar avatar Jan 14 '24 19:01 JoeKar

As written in #2839 am at this topic and use your file as benchmark too, but the rework takes a lot of time. The easy and low cost improvement reduced the parsing time by the half.

JoeKar avatar Jan 20 '24 19:01 JoeKar