lite-xl/data/core
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
..
commands Text overwriting (#1495) 2023-12-26 13:16:33 +00:00
doc Text overwriting (#1495) 2023-12-26 13:16:33 +00:00
bit.lua Assert for negative `field` in bit32 polyfill 2022-01-12 19:56:09 +01:00
command.lua Documentation for core.command (#1564) 2023-08-07 14:51:14 +01:00
commandview.lua Added in explicit touchscreen keyboard support. (#1389) 2023-08-07 14:50:58 +01:00
common.lua Fix `dirmonitor` sorting issues (#1599) 2023-12-26 13:16:33 +00:00
config.lua docs(core.config): add documentation for config options (#1512) 2023-12-26 13:16:33 +00:00
contextmenu.lua docs(core.contextmenu): add documentation for contextmenu (#1567) 2023-12-26 13:16:33 +00:00
dirwatch.lua Fix `dirmonitor` sorting issues (#1599) 2023-12-26 13:16:33 +00:00
docview.lua Text overwriting (#1495) 2023-12-26 13:16:33 +00:00
emptyview.lua fix: center title and version in emptyview (#1311) 2023-01-06 15:27:05 -04:00
ime.lua Improve IME location updates (#1170) 2022-12-20 20:11:13 -04:00
init.lua Fix `core.redraw` when window is not focused (#1601) 2023-12-26 13:16:33 +00:00
keymap-macos.lua Make tab scrolling more flexible (#1384) 2023-08-07 14:50:58 +01:00
keymap.lua Text overwriting (#1495) 2023-12-26 13:16:33 +00:00
logview.lua Fix #1538 log scrolls automatically (the real PR) (#1546) 2023-08-07 14:51:14 +01:00
modkeys-generic.lua Adds super as a modkey. (#1590) 2023-12-26 13:16:33 +00:00
modkeys-macos.lua Normalize strokes in fixed order (#1572) 2023-12-26 13:16:33 +00:00
nagview.lua ease transparency of nagbar dim (#1658) 2023-12-26 13:16:33 +00:00
node.lua Sanitize tab index in `Node:add_view` (#1651) 2023-12-26 13:16:33 +00:00
object.lua comment typo in object.lua (#1541) 2023-08-07 14:51:14 +01:00
regex.lua core: ported regex.gsub to faster native version (#1233) 2022-12-20 17:46:37 -04:00
rootview.lua Fixed issue with set_target_size passing the wrong value to plugins (#1657) 2023-12-26 13:16:33 +00:00
scrollbar.lua Fix `Scrollbar.{expanded,contracted}_size` documentation 2023-12-26 13:16:33 +00:00
start.lua Remove DPI detection for default `SCALE` 2023-12-26 13:16:33 +00:00
statusview.lua Text overwriting (#1495) 2023-12-26 13:16:33 +00:00
strict.lua Initial commit 2019-12-28 11:17:56 +00:00
style.lua Add top tab margins (#1479) 2023-08-07 14:50:59 +01:00
syntax.lua Skip checking `files` if no filename was provided to `syntax.get` 2023-08-07 14:51:14 +01:00
titleview.lua Add mouse grab (#1501) 2023-08-07 14:50:59 +01:00
tokenizer.lua Fix patterns starting with `^` in `tokenizer` (#1645) 2023-12-26 13:16:33 +00:00
utf8string.lua c core: fix extra utf8 build conflict on windows 2022-05-11 00:22:01 -04:00
view.lua Add `NaN` guard to `View:update_scrollbar` 2023-12-26 13:16:33 +00:00