rxi / lite

A lightweight text editor written in Lua

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

alexGuntha opened this issue · comments

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.

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

This was fixed in the master, shortly after the release of version 1.11:
878c94a
I confirmed with rxi that it worked as expected with a build of the master.