configurable colors and cursor in editor widget

[?]
Dec 1, 2022, 3:31 AM
GZ2OYPSHZU3FNO5HYP53EABOLM4C3TFPB5RGTIW2CJAWT6D2QXYQC

Dependencies

  • [2] H6QZ7GRR more precise name
  • [3] BE3WIEVK update cursor in search box
  • [4] Y4SPXCM3 bugfix: pagedown was sometimes bouncing up
  • [5] HNZMFBMQ Merge lines.love
  • [6] PP2IIHL6 stop putting button state in a global
  • [7] LWPRYDLW set color for each fragment
  • [8] LAW2O3NW extract variable Margin_left
  • [9] ILOA5BYF separate data structure for each line's cache data
  • [10] IWYLK45K clicking to the right of a line within line width
  • [11] MD3W5IRA new fork: rip out drawing support
  • [12] J2SVGR2E experiment: blinking cursor
  • [13] 3PSFWAIL Merge lines.love
  • [14] ZLJGZYQG select text with shift + mouseclick
  • [15] VG75U7IM bugfix: typing should delete highlighted text
  • [16] MSOQI3A5 bugfix: check before cursor on same line
  • [17] 5DOC2CBM extract a function
  • [18] 2JLVAYHB start decoupling editor tests from App
  • [19] X3F7ECSL add state arg to some functions
  • [20] NZKYPBSK check for scroll when just typing
  • [21] V3EABA35 skip multiple consecutive whitespace
  • [22] XNFTJHC4 split keyboard handling between Text and Drawing
  • [23] QKAMUWSB another bugfix in scrolling while inserting text
  • [24] WAR3HXHT test both ways of selecting text with mouse
  • [25] 3ZSUBI57 drop some redundant args from Text.draw
  • [26] Z4XRNDTR find text
  • [27] 7EQLPB3O bugfix: don't delete selection when moving cursor
  • [28] 62JEPVQ3 bugfix: backspace from start of final line
  • [29] AMOPICKV bugfix: check after cursor on same line when searching upwards
  • [30] TXHMMX25 move caching behavior inside compute_fragments
  • [31] B3IWYWSR delete another arg that can be deduced
  • [32] LXTTOB33 extract a couple of files
  • [33] CVSRHMJ2 experiment: slightly adaptive scrolling
  • [34] Y2ZIPXEM new test
  • [35] GJLOKCYK bugfix: clicking past end of screen line
  • [36] HPVT467W initialize contains test state
  • [37] RMKMPFT5 fix a corner case when selecting text
  • [38] T3B4NLV3 include a unit test
  • [39] YJJ4X4JG bugfix: avoid scrolling on 'end'
  • [40] 4WAFGF4Z selection bugfix
  • [41] S2YQBEYC snapshot: test for a new regression
  • [42] UH4YWHW5 button framework is at the app level
  • [43] OYXDYPGS get rid of debug variables
  • [44] 2L5MEZV3 experiment: new edit namespace
  • [45] WJBZZQE4 fold together two largely similar cases
  • [46] KOTI3MFG bugfix in previous commit
  • [47] EKKFWP4D bugfix: couple of margin-relative computations
  • [48] ERQKFTPV extract method
  • [49] EETIR4GX bugfix: skip over drawings when searching
  • [50] 5STHSG4U remove some duplication
  • [51] 2Y7YH7UP infrastructure for caching LÖVE text objects
  • [52] 2CTN2IEF Merge lines.love
  • [53] CVGE3SIG I feel confident now that page-down is working.
  • [54] LF7BWEG4 group all editor globals
  • [55] 4KC7I3E2 make colors easier to edit
  • [56] EWMPYCDO bugfix
  • [57] 4J2L6JMR bugfix: deleting a selection spanning pages
  • [58] WLJCIXYM add state arg to a few functions
  • [59] MUJTM6RE bring back a level of wrapping
  • [60] BULPIBEG beginnings of a module for the text editor
  • [61] Y36LOGR5 bugfix: show cursor when past end of line
  • [62] 2RXZ3PGO beginning of a new approach to scroll+wrap
  • [63] HTWAM4NZ bugfix: scrolling in left/right movements
  • [64] 2LC3BM2N support other whitespace chars in word movements
  • [65] KWOJ6XHE cut/copy selected text to clipboard
  • [66] LNUHQOGH start passing in Editor_state explicitly
  • [67] 5BMR5HRT click to the left of a line
  • [68] VSBSWTE4 bugfix: where cursor is drawn
  • [69] FZBXBUFF bugfix: search
  • [70] M6TH7VSZ rip out notion of Line_width
  • [71] XUGDTYW2 stop confusingly reading a global
  • [72] TGHAJBES use line cache for drawings as well
  • [73] H2DPLWMV snapshot: wrapping long lines at word boundaries
  • [74] BW2IUB3K keep all text cache writes inside text.lua
  • [75] CIQN2MDE bugfix: typing a capital letter deletes selection
  • [76] ELJNEPW2 simplify cursor-on-screen check
  • [77] ZDAJXYIX remove some unnecessary work
  • [78] 356GY7IQ unify two similar functions
  • [79] IFTYOERM line.y -> line_cache.starty in a few more places
  • [80] LLAOOMUL bugfix: search upwards
  • [81] NUZFHX6I flesh out some tests for word movements
  • [82] 4VKEE43Z bugfix
  • [83] UHB4GARJ left/right margin -> left/right coordinates
  • [84] 32V6ZHQB Merge lines.love
  • [85] EMHRPJ3R no, that's not right
  • [86] KMRJOSLY bugfix: delete selection before pasting
  • [87] H3ECRBXF bugfix: clicking on empty lines
  • [88] DSLD74DK lots more tests
  • [89] APYPFFS3 call edit rather than App callbacks in tests
  • [90] 3TFEAQSW start using some globals
  • [91] 5UKUADTW distinguish consistently between mouse buttons and other buttons
  • [92] HALS7E5U more clearly skip prints before screen top
  • [93] KURLAXXI clean up some prints
  • [94] 36Z442IV back to commit 8123959e52f without code editing
  • [95] CNCYMM6A make test initializations a little more obvious
  • [96] UD7HNQL7 purge unused button infrastructure

Change contents

  • replacement in text_tests.lua at line 9
    [8.347][8.2:28](),[8.1140][8.2:28]()
    edit.draw(Editor_state)
    [8.347]
    [8.1227]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 39
    [8.446][8.56:82](),[8.2355][8.56:82]()
    edit.draw(Editor_state)
    [8.446]
    [8.132]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 65
    [8.2805][8.124:150]()
    edit.draw(Editor_state)
    [8.2805]
    [8.227]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 77
    [8.3035][8.151:177]()
    edit.draw(Editor_state)
    [8.3035]
    [8.276]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 89
    [8.3275][8.178:204]()
    edit.draw(Editor_state)
    [8.3275]
    [8.326]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 102
    [8.3662][8.205:231]()
    edit.draw(Editor_state)
    [8.3662]
    [8.375]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 115
    [8.3994][8.232:258]()
    edit.draw(Editor_state)
    [8.3994]
    [8.425]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 127
    [8.4273][8.259:285]()
    edit.draw(Editor_state)
    [8.4273]
    [8.476]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 139
    [8.4562][8.286:312]()
    edit.draw(Editor_state)
    [8.4562]
    [8.527]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 151
    [8.4838][8.313:339]()
    edit.draw(Editor_state)
    [8.4838]
    [8.578]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 163
    [8.5128][8.340:366]()
    edit.draw(Editor_state)
    [8.5128]
    [8.629]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 175
    [8.5399][8.367:393]()
    edit.draw(Editor_state)
    [8.5399]
    [8.680]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 188
    [8.5765][8.394:420]()
    edit.draw(Editor_state)
    [8.5765]
    [8.731]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 200
    [8.6044][8.421:447]()
    edit.draw(Editor_state)
    [8.6044]
    [8.783]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 212
    [8.6320][8.448:474]()
    edit.draw(Editor_state)
    [8.6320]
    [8.835]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 224
    [8.6606][8.475:501]()
    edit.draw(Editor_state)
    [8.6606]
    [8.887]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 236
    [8.6873][8.502:528]()
    edit.draw(Editor_state)
    [8.6873]
    [8.939]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 253
    [8.329][8.529:555]()
    edit.draw(Editor_state)
    [8.329]
    [8.2306]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 271
    [8.469][8.469:495]()
    edit.draw(Editor_state)
    [8.469]
    [8.495]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 291
    [8.718][8.718:744]()
    edit.draw(Editor_state)
    [8.718]
    [8.744]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 310
    [8.383][8.556:582]()
    edit.draw(Editor_state)
    [8.383]
    [8.2498]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 325
    [8.8381][8.583:609]()
    edit.draw(Editor_state)
    [8.8381]
    [8.2690]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 343
    [8.8755][8.610:636]()
    edit.draw(Editor_state)
    [8.8755]
    [8.2825]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 361
    [8.9128][8.637:663]()
    edit.draw(Editor_state)
    [8.9128]
    [8.2960]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 381
    [8.1713][8.1713:1739]()
    edit.draw(Editor_state)
    [8.1713]
    [8.1739]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 401
    [8.2785][8.2785:2811]()
    edit.draw(Editor_state)
    [8.2785]
    [8.2811]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 419
    [8.9503][8.664:690]()
    edit.draw(Editor_state)
    [8.9503]
    [8.3095]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 438
    [8.9917][8.691:717]()
    edit.draw(Editor_state)
    [8.9917]
    [8.3230]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 458
    [8.10286][8.718:744]()
    edit.draw(Editor_state)
    [8.10286]
    [8.3365]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 482
    [8.10831][8.745:771]()
    edit.draw(Editor_state)
    [8.10831]
    [8.3500]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 504
    [8.11418][8.772:798]()
    edit.draw(Editor_state)
    [8.11418]
    [8.3635]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 529
    [8.12004][8.799:825]()
    edit.draw(Editor_state)
    [8.12004]
    [8.3770]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 555
    [8.12594][8.826:852]()
    edit.draw(Editor_state)
    [8.12594]
    [8.3905]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 575
    [8.13018][8.853:879]()
    edit.draw(Editor_state)
    [8.13018]
    [8.280]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 599
    [8.13628][8.880:906]()
    edit.draw(Editor_state)
    [8.13628]
    [8.401]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 618
    [8.14133][8.907:933]()
    edit.draw(Editor_state)
    [8.14133]
    [8.348]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 636
    [8.14508][8.934:960]()
    edit.draw(Editor_state)
    [8.14508]
    [8.383]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 659
    [8.14995][8.961:987]()
    edit.draw(Editor_state)
    [8.14995]
    [8.360]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 678
    [8.15369][8.988:1014]()
    edit.draw(Editor_state)
    [8.15369]
    [8.315]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 697
    [8.15736][8.1015:1041]()
    edit.draw(Editor_state)
    [8.15736]
    [8.859]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 717
    [8.16093][8.1042:1068]()
    edit.draw(Editor_state)
    [8.16093]
    [8.4775]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 742
    [8.16691][8.1069:1095]()
    edit.draw(Editor_state)
    [8.16691]
    [8.1895]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 762
    [8.17134][8.1096:1122]()
    edit.draw(Editor_state)
    [8.17134]
    [8.5102]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 810
    [8.18618][8.1123:1149]()
    edit.draw(Editor_state)
    [8.18618]
    [8.5480]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 841
    [8.19386][8.241:336]()
    edit.draw(Editor_state) -- populate line_cache.starty for each line Editor_state.line_cache
    [8.19386]
    [8.5639]
    edit.draw(Editor_state, Text_color) -- populate line_cache.starty for each line Editor_state.line_cache
  • replacement in text_tests.lua at line 859
    [8.20197][8.337:432]()
    edit.draw(Editor_state) -- populate line_cache.starty for each line Editor_state.line_cache
    [8.20197]
    [8.2]
    edit.draw(Editor_state, Text_color) -- populate line_cache.starty for each line Editor_state.line_cache
  • replacement in text_tests.lua at line 880
    [8.21125][8.433:528]()
    edit.draw(Editor_state) -- populate line_cache.starty for each line Editor_state.line_cache
    [8.21125]
    [8.581]
    edit.draw(Editor_state, Text_color) -- populate line_cache.starty for each line Editor_state.line_cache
  • replacement in text_tests.lua at line 906
    [8.22267][8.529:624]()
    edit.draw(Editor_state) -- populate line_cache.starty for each line Editor_state.line_cache
    [8.22267]
    [8.446]
    edit.draw(Editor_state, Text_color) -- populate line_cache.starty for each line Editor_state.line_cache
  • replacement in text_tests.lua at line 937
    [8.23723][8.1482:1508]()
    edit.draw(Editor_state)
    [8.23723]
    [8.344]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 954
    [8.6555][8.1509:1535]()
    edit.draw(Editor_state)
    [8.6555]
    [8.7467]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 979
    [8.25425][8.1563:1589]()
    edit.draw(Editor_state)
    [8.25425]
    [8.7870]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 1010
    [8.26449][8.1590:1616]()
    edit.draw(Editor_state)
    [8.26449]
    [8.8086]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 1039
    [4.443][4.443:469]()
    edit.draw(Editor_state)
    [4.443]
    [4.469]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 1056
    [8.10434][8.1617:1643]()
    edit.draw(Editor_state)
    [8.10434]
    [8.8245]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 1086
    [8.27840][8.1644:1670]()
    edit.draw(Editor_state)
    [8.27840]
    [8.8404]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 1115
    [8.28590][8.1671:1697]()
    edit.draw(Editor_state)
    [8.28590]
    [8.8620]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 1145
    [8.29464][8.1698:1724]()
    edit.draw(Editor_state)
    [8.29464]
    [8.8836]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 1174
    [8.30422][8.1725:1751]()
    edit.draw(Editor_state)
    [8.30422]
    [8.9052]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 1209
    [8.31681][8.1752:1778]()
    edit.draw(Editor_state)
    [8.31681]
    [8.9211]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 1239
    [8.32336][8.1779:1805]()
    edit.draw(Editor_state)
    [8.32336]
    [8.9370]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 1268
    [8.33078][8.1806:1832]()
    edit.draw(Editor_state)
    [8.33078]
    [8.9586]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 1297
    [8.34012][8.1833:1859]()
    edit.draw(Editor_state)
    [8.34012]
    [8.9802]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 1328
    [8.34926][8.1860:1886]()
    edit.draw(Editor_state)
    [8.34926]
    [8.9961]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 1357
    [8.25306][8.1887:1913]()
    edit.draw(Editor_state)
    [8.25306]
    [8.10120]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 1382
    [8.36217][8.1914:1940]()
    edit.draw(Editor_state)
    [8.36217]
    [8.10336]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 1412
    [8.37150][8.1941:1967]()
    edit.draw(Editor_state)
    [8.37150]
    [8.10552]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 1440
    [8.37982][8.1968:1994]()
    edit.draw(Editor_state)
    [8.37982]
    [8.10768]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 1470
    [8.38826][8.1995:2021]()
    edit.draw(Editor_state)
    [8.38826]
    [8.10984]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 1494
    [8.39626][8.2022:2048]()
    edit.draw(Editor_state)
    [8.39626]
    [8.529]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 1514
    [8.40403][8.2049:2075]()
    edit.draw(Editor_state)
    [8.40403]
    [8.11392]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 1547
    [8.41255][8.2076:2102]()
    edit.draw(Editor_state)
    [8.41255]
    [8.11608]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 1577
    [8.42186][8.2103:2129]()
    edit.draw(Editor_state)
    [8.42186]
    [8.11824]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 1608
    [8.43056][8.2130:2156]()
    edit.draw(Editor_state)
    [8.43056]
    [8.12040]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 1638
    [8.43963][8.2157:2183]()
    edit.draw(Editor_state)
    [8.43963]
    [8.12256]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 1668
    [8.44748][8.2184:2210]()
    edit.draw(Editor_state)
    [8.44748]
    [8.12415]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 1703
    [8.45611][8.2211:2237]()
    edit.draw(Editor_state)
    [8.45611]
    [8.12690]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 1732
    [8.46337][8.2238:2264]()
    edit.draw(Editor_state)
    [8.46337]
    [8.13010]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 1875
    [8.40830][8.2265:2291]()
    edit.draw(Editor_state)
    [8.40830]
    [8.5789]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 1950
    [8.53740][8.2292:2318]()
    edit.draw(Editor_state)
    [8.53740]
    [8.355]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 1972
    [8.355][8.355:381]()
    edit.draw(Editor_state)
    [8.355]
    [8.678]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 2000
    [8.353][8.353:379]()
    edit.draw(Editor_state)
    [8.353]
    [8.379]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 2019
    [8.344][8.344:370]()
    edit.draw(Editor_state)
    [8.344]
    [8.370]
    edit.draw(Editor_state, Text_color)
  • replacement in text_tests.lua at line 2038
    [8.364][8.364:390]()
    edit.draw(Editor_state)
    [8.364]
    [8.390]
    edit.draw(Editor_state, Text_color)
  • replacement in text.lua at line 11
    [8.163][8.163:214]()
    function Text.draw(State, line_index, y, startpos)
    [8.163]
    [8.42]
    function Text.draw(State, line_index, y, startpos, fg, hide_cursor)
  • replacement in text.lua at line 22
    [8.3906][7.3:29]()
    App.color(Text_color)
    [8.3906]
    [8.1941]
    App.color(fg)
  • replacement in text.lua at line 52
    [8.1566][8.738:774](),[8.738][8.738:774]()
    App.color(Text_color)
    [8.1566]
    [8.774]
    App.color(fg)
  • replacement in text.lua at line 55
    [8.854][8.854:949]()
    else
    Text.draw_cursor(State, x+Text.x(frag, State.cursor1.pos-pos+1), y)
    [8.854]
    [8.530]
    elseif not hide_cursor then
    Text.draw_cursor(State, x+Text.x(frag, State.cursor1.pos-pos+1), y, Cursor_color, fg)
  • replacement in text.lua at line 64
    [8.37][8.1242:1277]()
    if State.search_term == nil then
    [8.37]
    [8.1277]
    if not hide_cursor and State.search_term == nil then
  • replacement in text.lua at line 66
    [8.1351][8.1351:1387]()
    Text.draw_cursor(State, x, y)
    [8.1351]
    [8.755]
    Text.draw_cursor(State, x, y, Cursor_color, fg)
  • replacement in text.lua at line 72
    [8.851][8.1388:1427]()
    function Text.draw_cursor(State, x, y)
    [8.851]
    [8.3]
    function Text.draw_cursor(State, x, y, cursor_color, reset_color)
  • replacement in text.lua at line 75
    [8.68][8.63:91]()
    App.color(Cursor_color)
    [8.68]
    [8.1428]
    App.color(cursor_color)
  • replacement in text.lua at line 77
    [8.1490][8.92:118](),[8.55644][8.92:118](),[8.158][8.92:118]()
    App.color(Text_color)
    [8.1490]
    [8.192]
    App.color(reset_color)
  • replacement in text.lua at line 901
    [8.223][8.234:247](),[8.912][8.234:247](),[8.234][8.234:247]()
    App.draw()
    [8.223]
    [8.224]
    edit.draw(State, --[[should be drawn over]] Cursor_color)
  • replacement in search.lua at line 19
    [8.49599][3.6:69]()
    Text.draw_cursor(State, 25+App.width(State.search_text),y-5)
    [8.49599]
    [8.49698]
    Text.draw_cursor(State, 25+App.width(State.search_text),y-5, Cursor_color, Text_color)
  • replacement in edit.lua at line 54
    [8.3084][8.97000:97036]()
    -- cursor coordinates in pixels
    [8.3084]
    [8.97036]
    -- cursor coordinates in pixels (nil => no cursor drawn in viewport)
  • replacement in edit.lua at line 82
    [8.366][8.2701:2727](),[8.3868][8.2701:2727](),[6.44][8.999:1023](),[8.2727][8.999:1023](),[8.3913][8.999:1023]()
    function edit.draw(State)
    App.color(Text_color)
    [8.3868]
    [8.1851]
    function edit.draw(State, fg, hide_cursor)
  • replacement in edit.lua at line 102
    [8.5853][8.9659:9735]()
    y, State.screen_bottom1.pos = Text.draw(State, line_index, y, startpos)
    [8.5853]
    [8.9735]
    y, State.screen_bottom1.pos = Text.draw(State, line_index, y, startpos, fg, hide_cursor)
  • replacement in edit.lua at line 108
    [8.4219][8.2069:2101]()
    Text.draw_search_bar(State)
    [8.4219]
    [8.6084]
    Text.draw_search_bar(State, hide_cursor)
  • replacement in edit.lua at line 324
    [2.264][2.264:337]()
    love.graphics.setFont(love.graphics.newFont(Editor_state.font_height))
    [2.264]
    [2.337]
    love.graphics.setFont(love.graphics.newFont(State.font_height))
  • replacement in edit.lua at line 354
    [8.6430][8.6430:6449]()
    edit.draw(State)
    [8.6430]
    [8.16043]
    edit.draw(State, Text_color)
  • replacement in edit.lua at line 362
    [8.6627][8.6627:6646]()
    edit.draw(State)
    [8.6627]
    [8.6646]
    edit.draw(State, Text_color)
  • replacement in edit.lua at line 371
    [8.6891][8.6891:6910]()
    edit.draw(State)
    [8.6891]
    [8.6910]
    edit.draw(State, Text_color)
  • replacement in edit.lua at line 378
    [8.7075][8.7075:7094]()
    edit.draw(State)
    [8.7075]
    [8.7094]
    edit.draw(State, Text_color)
  • replacement in edit.lua at line 385
    [8.7264][8.7264:7283]()
    edit.draw(State)
    [8.7264]
    [8.7283]
    edit.draw(State, Text_color)