lite-xl/data/core/commands
ThaCuber f43cfc4a94 Text overwriting (#1495)
* added text overwriting

* rewrote `DocView:draw_caret` to not use the order of draws

* forgot to delete some old code in `DocView:draw_overlay`
also added a temporary solution to overwriting
and added the missing arguments in `DocView:draw_ime_decoration`
and fixed `DocView:draw_caret`

* accidentally broke the `draw_caret` call in `draw_overlay` in the process

* multiline

* fixed calling `Doc:get_char` as a function
that, in turn, crashed the editor because "can't index a number"

* move and rename some stuff

* remove unneeded extra check

I just had to change the `~=` to `<` in the second condition

* overwrite disregards pasting text

* disregard overwrite on selections; doc only removes selection

* Fixed error where `doc` was used, instead of `self`.

---------

Co-authored-by: ThaCuber <70547062+ThaCuber@users.noreply.github.com>
Co-authored-by: Adam Harrison <adamdharrison@gmail.com>
2023-12-26 13:16:33 +00:00
..
command.lua Allow command predicates to manage parameters passed to the commands 2022-08-16 22:13:16 +02:00
core.lua Add `text` and `select_text` to `CommandView` options 2022-06-02 19:30:51 +02:00
dialog.lua Allow command predicates to manage parameters passed to the commands 2022-08-16 22:13:16 +02:00
doc.lua Text overwriting (#1495) 2023-12-26 13:16:33 +00:00
files.lua Use new `CommandView:enter` options table 2022-05-30 22:08:13 +02:00
findreplace.lua Fix selecting newlines with `find-replace:select-add-{next,all}` (#1608) 2023-12-26 13:16:33 +00:00
log.lua remove unsaved flag from log.txt 2021-12-22 10:54:25 +08:00
root.lua Add mouse grab (#1501) 2023-08-07 14:50:59 +01:00
statusbar.lua Use new `CommandView:enter` options table 2022-05-30 22:08:13 +02:00