Commit Graph

10 Commits

Author SHA1 Message Date
Kartik K. Agaram
703ed905c1 bugfix: crash in Text.up() after return
Let's just make all the utf8.offset calculations more defensive.
2022-06-19 09:06:41 -07:00
Kartik K. Agaram
c1d8201d44 mouse buttons are integers, not strings
Not sure where that idiom comes from or why strings work in some places
(auto-coercion?). I picked it up off some example apps. But
https://love2d.org/wiki/love.mouse.isDown says it should be an integer.
2022-06-14 09:05:02 -07:00
Kartik K. Agaram
059efba79d override mouse state lookups in tests
If I'd had this stuff in my test harness earlier, two recent commits
would have failed tests and given me early warning:
  ff88238ff1
  ff88a2a927
2022-06-12 09:04:21 -07:00
Kartik K. Agaram
e4e12c77ad fix a second BSOD in #4 :/
I need more tests.
2022-06-12 07:20:14 -07:00
Kartik K. Agaram
4476eb8946 bugfix: cut (C-x) without first selecting anything 2022-06-09 18:27:09 -07:00
Kartik K. Agaram
4ad51d648b move 2022-06-09 07:29:38 -07:00
Kartik K. Agaram
e77157d316 speeding up copy, attempt 1
Problem: repeatedly copying (relatively large) sections of text quickly
makes the app sluggish until it has to be killed. (Thanks John Blommers
for the report.)

When I instrument with prints, the sluggishness seems to happen in
random draw() calls many times after I perform the copy.

I don't know for sure, but I'm initially checking if the cause is
garbage generated by repeated string concatenation.

This attempt doesn't seem to make any difference.
2022-06-09 07:24:40 -07:00
Kartik K. Agaram
e2696fcc72 more precise search highlighting 2022-06-03 14:37:32 -07:00
Kartik K. Agaram
1bdb931575 extract a function 2022-06-03 14:30:51 -07:00
Kartik K. Agaram
0d52962b3e extract a couple of files 2022-06-03 14:17:41 -07:00