lite-xl/data/core/doc
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
..
highlighter.lua Use proper timeouts for coroutines that don't need to wait (#1467) 2023-08-07 14:51:14 +01:00
init.lua Text overwriting (#1495) 2023-12-26 13:16:33 +00:00
search.lua Fix selecting newlines with `find-replace:select-add-{next,all}` (#1608) 2023-12-26 13:16:33 +00:00
translate.lua Changed behaviour of home. 2021-08-06 18:08:08 -04:00