Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | generalize a function | Kartik K. Agaram | 2022-08-18 | 1 | -1/+1 |
| | |||||
* | simpler location comparison | Kartik K. Agaram | 2022-08-17 | 1 | -5/+2 |
| | |||||
* | swap return values | Kartik K. Agaram | 2022-08-17 | 1 | -1/+1 |
| | |||||
* | use line cache for drawings as well | Kartik K. Agaram | 2022-07-20 | 1 | -1/+1 |
| | |||||
* | separate data structure for each line's cache data | Kartik K. Agaram | 2022-07-17 | 1 | -0/+1 |
| | | | | I have no idea what the performance implications of this are.. | ||||
* | switch to line index in a function | Kartik K. Agaram | 2022-07-17 | 1 | -1/+1 |
| | | | | - Text.to_pos_on_line | ||||
* | switch to line index in a function | Kartik K. Agaram | 2022-07-17 | 1 | -1/+1 |
| | | | | - Text.in_line | ||||
* | drop some redundant args when clearing the cache | Kartik K. Agaram | 2022-07-17 | 1 | -1/+1 |
| | |||||
* | deduce left/right from state where possible | Kartik K. Agaram | 2022-07-12 | 1 | -13/+13 |
| | |||||
* | add state arg to a few functions | Kartik K. Agaram | 2022-07-12 | 1 | -2/+2 |
| | | | | | | | | | | | | | - Text.cursor_at_final_screen_line - Text.move_cursor_down_to_next_text_line_while_scrolling_again_if_necessary - Text.snap_cursor_to_bottom_of_screen - Text.in_line - Text.to_pos_on_line - Text.to2 - Text.to1 - Text.previous_screen_line - Text.tweak_screen_top_and_cursor - Text.redraw_all | ||||
* | add state arg to a few functions | Kartik K. Agaram | 2022-07-12 | 1 | -1/+1 |
| | | | | | - Text.pos_at_start_of_cursor_screen_line - Text.cursor_past_screen_bottom | ||||
* | add state arg to a few functions | Kartik K. Agaram | 2022-07-12 | 1 | -2/+2 |
| | | | | | | | - record_undo_event - undo_event - redo_event - snapshot | ||||
* | add state arg to a few functions | Kartik K. Agaram | 2022-07-12 | 1 | -60/+60 |
| | | | | | | | | | | | - Text.draw_highlight - Text.clip_selection - Text.selection - Text.cut_selection - Text.delete_selection - Text.delete_selection_without_undo - Text.mouse_pos - Text.to_pos | ||||
* | group all editor globals | Kartik K. Agaram | 2022-07-12 | 1 | -47/+47 |
| | | | | We're still accessing them through a global. But we'll change that next. | ||||
* | make colors easier to edit | Kartik K. Agaram | 2022-07-11 | 1 | -2/+2 |
| | |||||
* | stop pretending globals are local | Kartik K. Agaram | 2022-07-11 | 1 | -2/+0 |
| | | | | | One advantage of this approach: we don't end up with multiple lexical scopes containing duplicates of the same modules. | ||||
* | add args to some functions | Kartik K. Agaram | 2022-07-08 | 1 | -1/+1 |
| | | | | - Text.pos_at_start_of_cursor_screen_line | ||||
* | add args to some functions | Kartik K. Agaram | 2022-07-08 | 1 | -1/+1 |
| | | | | - Text.to_pos_on_line | ||||
* | add args to some functions | Kartik K. Agaram | 2022-07-08 | 1 | -1/+1 |
| | | | | - Text.in_line | ||||
* | add args to some functions | Kartik K. Agaram | 2022-07-08 | 1 | -10/+10 |
| | | | | | | | | | - Text.clip_selection - Text.cut_selection - Text.delete_selection - Text.delete_selection_without_undo - Text.mouse_pos - Text.to_pos | ||||
* | drop an arg from a function | Kartik K. Agaram | 2022-07-08 | 1 | -1/+1 |
| | |||||
* | bugfix: deleting a selection spanning pages | Kartik K. Agaram | 2022-06-26 | 1 | -0/+4 |
| | |||||
* | extract a function | Kartik K. Agaram | 2022-06-23 | 1 | -2/+1 |
| | |||||
* | bugfix: crash in Text.up() after return | Kartik K. Agaram | 2022-06-19 | 1 | -7/+7 |
| | | | | Let's just make all the utf8.offset calculations more defensive. | ||||
* | mouse buttons are integers, not strings | Kartik K. Agaram | 2022-06-14 | 1 | -1/+1 |
| | | | | | | 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. | ||||
* | override mouse state lookups in tests | Kartik K. Agaram | 2022-06-12 | 1 | -2/+2 |
| | | | | | | | 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 | ||||
* | fix a second BSOD in #4 :/ | Kartik K. Agaram | 2022-06-12 | 1 | -1/+1 |
| | | | | I need more tests. | ||||
* | bugfix: cut (C-x) without first selecting anything | Kartik K. Agaram | 2022-06-09 | 1 | -0/+2 |
| | |||||
* | move | Kartik K. Agaram | 2022-06-09 | 1 | -6/+6 |
| | |||||
* | speeding up copy, attempt 1 | Kartik K. Agaram | 2022-06-09 | 1 | -4/+4 |
| | | | | | | | | | | | | | | 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. | ||||
* | more precise search highlighting | Kartik K. Agaram | 2022-06-03 | 1 | -0/+3 |
| | |||||
* | extract a function | Kartik K. Agaram | 2022-06-03 | 1 | -0/+24 |
| | |||||
* | extract a couple of files | Kartik K. Agaram | 2022-06-03 | 1 | -0/+153 |