rxi / lite

A lightweight text editor written in Lua
MIT License
7.33k stars 348 forks source link

Broken text rendering with some combinations of files and tabs with detectindent plugin #301

Closed alexGuntha closed 2 years ago

alexGuntha commented 2 years ago

Files the bug happens with: bug.zip Steps to reproduce the bug (happen with the provided files, not any combination of files): ->Open builder.cpp with lite -->Text looks as expected: image ->drag svn_cmdline.h in lite's window (taken from https://github.com/apache/subversion/blob/trunk/subversion/include/svn_cmdline.h) ->Press Alt+Shift+L to the viewport and show svn_cmdline.h in the right pane ->close svn_cmdline.h in the left pane, or just switch to builder.cpp -->The text looks completely broken in builder.cpp: image

The bug doesn't reproduce with other combinations of files, or the rendering gets broken in a different way. I didn't manage to find what was so odd in any of the files to trigger this bug.

alexGuntha commented 2 years ago

The bug only happens with the detectindent plugin in the plugins directory, not sure if the issue is more with the plugin or with lite? https://github.com/rxi/lite-plugins/blob/master/plugins/detectindent.lua?raw=1

alexGuntha commented 2 years ago

This was fixed in the master, shortly after the release of version 1.11: https://github.com/rxi/lite/commit/878c94a334e2b830e57f90def10d3654b6996ed5 I confirmed with rxi that it worked as expected with a build of the master.