lite-xl/data/core
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
..
commands Deprecate core.add_save_hook to override Doc:save 2021-06-17 23:31:28 +02:00
doc Store doc's babs_filename without home encoding 2021-05-05 08:52:14 +02:00
command.lua Implement unicode character replacements 2021-04-01 18:05:59 +02:00
commandview.lua Do not close command view on open-file is file is invalid or it is a directory 2021-05-05 08:04:51 +02:00
common.lua Fix problem with filenames missing normalization 2021-05-24 15:58:49 +02:00
config.lua Improve user feedback for big directories (#223) 2021-05-27 08:28:58 +02:00
docview.lua support for font changing in the syntax highlighter 2021-05-26 19:16:56 +02:00
init.lua Fix error in dirname computation in TreeView 2021-06-17 23:39:26 +02:00
keymap-macos.lua MacOS modifier key adjustment (replace `alt`) per #262 (#263) 2021-06-17 23:31:44 +02:00
keymap.lua Fix keymap binding on macos 2021-04-21 01:42:56 -07:00
logview.lua Added multiline support for LogView's messages 2020-05-06 00:06:27 +01:00
modkeys-generic.lua Add macos keybindings 2021-04-21 09:48:30 +02:00
modkeys-macos.lua Add macos keybindings 2021-04-21 09:48:30 +02:00
nagview.lua Implement multi-lines for NagView 2021-04-07 23:46:45 +02:00
object.lua Initial commit 2019-12-28 11:17:56 +00:00
rootview.lua Fix problem with mouse cursor over dividers 2021-05-28 15:35:46 +02:00
start.lua Update changelog and release number 2021-05-27 13:46:51 +02:00
statusview.lua Do not assume doc.indent_info is present 2021-03-05 23:47:36 +01:00
strict.lua Initial commit 2019-12-28 11:17:56 +00:00
style.lua Use FiraSans regular for UI 2021-05-27 13:49:33 +02:00
syntax.lua Added file-header pattern support to `syntax` 2020-06-08 16:11:22 +01:00
titleview.lua Make non-borderless mode work 2021-04-12 19:05:30 +02:00
tokenizer.lua Tokenizer cleanup (#198) 2021-05-20 21:58:27 +02:00
view.lua Minor simplification of animation rate adjustment 2021-03-20 17:00:43 +01:00