correct location of the line width slider

[?]
Jun 18, 2022, 7:03 AM
7XKWT5Y5LCOI6WHUN67ZYC35NV5JCZOEM6NHUYUCQNQKBJQGTGEAC

Dependencies

  • [2] NFCBIEZD affordance to adjust width for word wrap
  • [3] 7M5PGWKU drop last couple of manual tests
  • [4] DHCLUDCW .
  • [5] K464QQR4 more defensive resize handling
  • [*] BULPIBEG beginnings of a module for the text editor
  • [*] H2DPLWMV snapshot: wrapping long lines at word boundaries
  • [*] OTIBCAUJ love2d scaffold

Change contents

  • edit in text.lua at line 17
    [7.141]
    [8.1747]
    --? love.graphics.line(Line_width,0, Line_width,App.screen.height)
  • replacement in main_tests.lua at line 19
    [3.751][3.751:851]()
    App.run_after_mouse_press(Margin_left+256, Margin_top-3, 1)
    App.mouse_move(Margin_left+200, 37)
    [3.751]
    [3.851]
    App.run_after_mouse_press(256, Margin_top-3, 1)
    App.mouse_move(200, 37)
  • replacement in main.lua at line 227
    [2.82][2.82:176]()
    button('line-width', {x=Margin_left+Line_width-4,y=Margin_top-10, w=10,h=10, color={1,1,1},
    [2.82]
    [2.176]
    button('line-width', {x=Line_width-4,y=Margin_top-10, w=10,h=10, color={1,1,1},
  • replacement in main.lua at line 300
    [2.510][2.510:557]()
    Line_width = App.mouse_x() - Margin_left
    [2.510]
    [2.557]
    Line_width = App.mouse_x()