hoist and duplicate a conditional
commitf7f42b0befc3fbe6c425cfa8bad18192c2beb926
authorKartik K. Agaram <vc@akkartik.com>
Mon, 31 Jul 2023 15:24:15 +0000 (31 08:24 -0700)
committerKartik K. Agaram <vc@akkartik.com>
Mon, 31 Jul 2023 15:40:07 +0000 (31 08:40 -0700)
treef130115e51beb5b0feb4b4f7d0eb9c9d5f78a9cf
parent484b76f5c6984f4d3a745d9fb36dd55cefb97c06
hoist and duplicate a conditional

I'm duplicating the bounds check when drawing cursor and search
highlight because they're separate concerns and require subtly different
logic.
source_text.lua
text.lua