aboutsummaryrefslogtreecommitdiff
path: root/data/plugins/language_cpp.lua
diff options
context:
space:
mode:
authorFrancesco Abbate <francesco.bbt@gmail.com>2021-11-26 13:45:13 +0100
committerFrancesco Abbate <francesco.bbt@gmail.com>2021-12-20 09:05:45 +0100
commit405bd1c2bd5c18b32e7a81adf1857897cec42d27 (patch)
tree59fa04496a93fbfd4ca45332071b1c1ab6abc754 /data/plugins/language_cpp.lua
parente512c576379fd806f83a89ef0a274f6ed95920d7 (diff)
downloadlite-xl-405bd1c2bd5c18b32e7a81adf1857897cec42d27.tar.gz
lite-xl-405bd1c2bd5c18b32e7a81adf1857897cec42d27.zip
Fix logic in project's file insertion
The function "file_search" in core.init was sometimes giving a wrong index value, off by one. The problem happened for example when the entry to search was "less than" the first entry, the function returned a value of two instead of one as expected. The bug was easily observed creating a new directory with a name that comes as the first in alphabetical order within the project.
Diffstat (limited to 'data/plugins/language_cpp.lua')
0 files changed, 0 insertions, 0 deletions