lite-xl/data/core/doc
ThaCuber 9615ead41b
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-11-29 14:12:43 -05:00
..
highlighter.lua Use proper timeouts for coroutines that don't need to wait (#1467) 2023-08-04 09:40:02 -04:00
init.lua Text overwriting (#1495) 2023-11-29 14:12:43 -05:00
search.lua Fix selecting newlines with `find-replace:select-add-{next,all}` (#1608) 2023-11-29 10:40:47 -05:00
translate.lua Changed behaviour of home. 2021-08-06 18:08:08 -04:00