about summary refs log tree commit diff stats
path: root/select.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-07-11 22:11:48 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-07-11 22:11:58 -0700
commit3dccd7f81abff050a37b5a65eb5e3cc6756a4b7f (patch)
tree55bfdeca3143b269616f348efa29869f74db3cef /select.lua
parente68d235c5fd455c6629f14b7219d376049c61481 (diff)
downloadtext.love-3dccd7f81abff050a37b5a65eb5e3cc6756a4b7f.tar.gz
stop pretending globals are local
One advantage of this approach: we don't end up with multiple lexical
scopes containing duplicates of the same modules.
Diffstat (limited to 'select.lua')
-rw-r--r--select.lua2
1 files changed, 0 insertions, 2 deletions
diff --git a/select.lua b/select.lua
index da3f99d..adf4739 100644
--- a/select.lua
+++ b/select.lua
@@ -1,7 +1,5 @@
 -- helpers for selecting portions of text
 
-local utf8 = require 'utf8'
-
 -- Return any intersection of the region from Selection1 to Cursor1 (or
 -- current mouse, if mouse is pressed; or recent mouse if mouse is pressed and
 -- currently over a drawing) with the region between {line=line_index, pos=apos}