diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-07-11 22:11:48 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-07-11 22:11:58 -0700 |
commit | 3dccd7f81abff050a37b5a65eb5e3cc6756a4b7f (patch) | |
tree | 55bfdeca3143b269616f348efa29869f74db3cef /text.lua | |
parent | e68d235c5fd455c6629f14b7219d376049c61481 (diff) | |
download | text.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 'text.lua')
-rw-r--r-- | text.lua | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/text.lua b/text.lua index 6661fd8..9926269 100644 --- a/text.lua +++ b/text.lua @@ -1,8 +1,6 @@ -- text editor, particularly text drawing, horizontal wrap, vertical scrolling Text = {} -local utf8 = require 'utf8' - require 'search' require 'select' require 'undo' @@ -1010,5 +1008,3 @@ function Text.clear_cache(line) line.fragments = nil line.screen_line_starting_pos = nil end - -return Text |