about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--drawing.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/drawing.lua b/drawing.lua
index 587c24c..38e62c3 100644
--- a/drawing.lua
+++ b/drawing.lua
@@ -241,6 +241,10 @@ function Drawing.update(State)
   if State.lines.current_drawing == nil then return end
   local drawing = State.lines.current_drawing
   assert(drawing.mode == 'drawing')
+  if drawing.y == nil then
+    -- something invalidated all the y's; just wait for a draw
+    return
+  end
   local pmx, pmy = App.mouse_x(), App.mouse_y()
   local mx = Drawing.coord(pmx-State.left, State.width)
   local my = Drawing.coord(pmy-drawing.y, State.width)
me/ranger.py?h=v1.9.2&id=e07d8b03612ede6ae75947d0d8ba71346aa894e1'>^
06848dc3 ^





a66c4a26 ^
06848dc3 ^








8fa87054 ^
06848dc3 ^
240394a4 ^
f027adc0 ^
08f08fb9 ^
654af129 ^
08f08fb9 ^
d8084b41 ^

99400080 ^
08f08fb9 ^

654af129 ^

0da832e8 ^
d8084b41 ^
cba63cf3 ^
b4250dbc ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52