lite-xl/data/plugins
Francesco Abbate 66275fe207 Fix error in dirname computation in TreeView
In TreeView:on_mouse_pressed() we need to find the directory a
relative filename belongs to from its absolute filename.
The code was using string.find to locate the relative filename
within the absolute path but in some very specific cases we can
find a pattern which is not the right-most one leading to a
wrong directory name.

Fix the error by adding a loop to make sure we find the right-most
match. The standard Lua library has not a string.rfind to make a
reverse search.

Add a check to avoid trying to updating a topdir project directory.
2021-06-17 23:39:26 +02:00
..
autocomplete.lua Introduce new plugin versioning tag mod-version 2021-05-05 22:38:29 +02:00
autoreload.lua Introduce new plugin versioning tag mod-version 2021-05-05 22:38:29 +02:00
detectindent.lua Reduce number of used lines in detectindent 2021-05-27 16:25:49 +02:00
language_c.lua support for multiple groups in one pattern (#196) 2021-05-19 22:35:28 +02:00
language_css.lua Introduce new plugin versioning tag mod-version 2021-05-05 22:38:29 +02:00
language_html.lua Introduce new plugin versioning tag mod-version 2021-05-05 22:38:29 +02:00
language_js.lua add `of` keyword to language_js.lua and improve js string syntax highlighting in (#186) 2021-05-17 08:56:21 +02:00
language_lua.lua Improved Lua syntax (#201) 2021-05-20 19:02:40 +02:00
language_md.lua Introduce new plugin versioning tag mod-version 2021-05-05 22:38:29 +02:00
language_python.lua Introduce new plugin versioning tag mod-version 2021-05-05 22:38:29 +02:00
language_xml.lua Introduce new plugin versioning tag mod-version 2021-05-05 22:38:29 +02:00
macro.lua Introduce new plugin versioning tag mod-version 2021-05-05 22:38:29 +02:00
projectsearch.lua Implement lazy loading of directories 2021-05-26 14:22:10 +02:00
quote.lua Introduce new plugin versioning tag mod-version 2021-05-05 22:38:29 +02:00
reflow.lua Introduce new plugin versioning tag mod-version 2021-05-05 22:38:29 +02:00
tabularize.lua Introduce new plugin versioning tag mod-version 2021-05-05 22:38:29 +02:00
toolbarview.lua Introduce new plugin versioning tag mod-version 2021-05-05 22:38:29 +02:00
treeview.lua Fix error in dirname computation in TreeView 2021-06-17 23:39:26 +02:00
trimwhitespace.lua Introduce new plugin versioning tag mod-version 2021-05-05 22:38:29 +02:00
workspace.lua Fix error in workspace file error reporting 2021-06-17 23:31:44 +02:00