diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-08-10 22:56:10 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-08-10 22:56:10 -0700 |
commit | da34fabf729e7cf51f4af2c499105350104bd525 (patch) | |
tree | 8fd9e86a4dcc2a27ee85e406cbcbfcc64fd3d813 /text.lua | |
parent | ba48aadaa71ac01db2a9d9bd06a26dec30fd31b3 (diff) | |
download | view.love-da34fabf729e7cf51f4af2c499105350104bd525.tar.gz |
bugfix: pagedown was sometimes bouncing up
Diffstat (limited to 'text.lua')
-rw-r--r-- | text.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/text.lua b/text.lua index 4e6c072..e255cb7 100644 --- a/text.lua +++ b/text.lua @@ -17,7 +17,7 @@ function Text.draw(State, line_index, y, startpos) -- wrap long lines local x = State.left local pos = 1 - local screen_line_starting_pos = 1 + local screen_line_starting_pos = State.screen_top1.pos if line_cache.fragments == nil then Text.compute_fragments(State, line_index) end |