cryptum 0.0.263 → 0.0.265
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cryptum/event/scroll.rb +44 -4
- data/lib/cryptum/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ceb0fe6e2cf138494117193f8a53dc3fbdd6aaedc6c3c6c761b1ae1a58e8202
|
4
|
+
data.tar.gz: 965a8bc45f70b5de2e0cbbd355fe28ef2e4c078e978c28964eda3bc88bb3adbe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f44b2ef945c80572d991b03196247389e5c912d5b9724b0e18b964b1090f6a9907f02af15905a1bda010f52281b17019704fcf81c3cfca38e0ece7a928c47e69
|
7
|
+
data.tar.gz: 10f189d637fc3d44dc10e9746cbc19920bd72ec8b92c1db03be1aac312779d37647e8c16f392ec060c91fcbab878be88291b51d347589f8bc8c2f0731bfd66a7
|
data/lib/cryptum/event/scroll.rb
CHANGED
@@ -71,7 +71,19 @@ module Cryptum
|
|
71
71
|
terminal_win.key_press_event.key_esc = false
|
72
72
|
terminal_win.key_press_event.key_page_up = false
|
73
73
|
|
74
|
-
|
74
|
+
if event_history.order_plan_win_active
|
75
|
+
event_history.order_plan_row_to_select = 0
|
76
|
+
event_history.order_plan_index_offset -= event_history.order_plan_max_rows_to_display - 1
|
77
|
+
event_history.order_plan_index_offset = 0 if event_history.order_plan_index_offset.negative?
|
78
|
+
event_history.order_plan_row_to_select = 0 if event_history.order_plan_row_to_select.negative?
|
79
|
+
end
|
80
|
+
|
81
|
+
if event_history.order_execute_win_active
|
82
|
+
event_history.order_execute_row_to_select = 0
|
83
|
+
event_history.order_execute_index_offset -= event_history.order_execute_max_rows_to_display - 1
|
84
|
+
event_history.order_execute_index_offset = 0 if event_history.order_execute_index_offset.negative?
|
85
|
+
event_history.order_execute_row_to_select = 0 if event_history.order_execute_row_to_select.negative?
|
86
|
+
end
|
75
87
|
rescue StandardError => e
|
76
88
|
raise e
|
77
89
|
end
|
@@ -87,7 +99,17 @@ module Cryptum
|
|
87
99
|
terminal_win.key_press_event.key_esc = false
|
88
100
|
terminal_win.key_press_event.key_page_down = false
|
89
101
|
|
90
|
-
|
102
|
+
if event_history.order_plan_win_active
|
103
|
+
event_history.order_plan_row_to_select = 0
|
104
|
+
event_history.order_plan_index_offset += event_history.order_plan_max_rows_to_display + 1
|
105
|
+
event_history.order_plan_row_to_select = event_history.order_plan_max_rows_to_display if event_history.order_plan_row_to_select > event_history.order_plan_max_rows_to_display
|
106
|
+
end
|
107
|
+
|
108
|
+
if event_history.order_execute_win_active
|
109
|
+
event_history.order_execute_row_to_select = 0
|
110
|
+
event_history.order_execute_index_offset += event_history.order_execute_max_rows_to_display + 1
|
111
|
+
event_history.order_execute_row_to_select = event_history.order_execute_max_rows_to_display if event_history.order_execute_row_to_select > event_history.order_execute_max_rows_to_display
|
112
|
+
end
|
91
113
|
rescue StandardError => e
|
92
114
|
raise e
|
93
115
|
end
|
@@ -103,7 +125,15 @@ module Cryptum
|
|
103
125
|
terminal_win.key_press_event.key_esc = false
|
104
126
|
terminal_win.key_press_event.key_home = false
|
105
127
|
|
106
|
-
|
128
|
+
if event_history.order_plan_win_active
|
129
|
+
event_history.order_plan_row_to_select = 0
|
130
|
+
event_history.order_plan_index_offset = 0
|
131
|
+
end
|
132
|
+
|
133
|
+
if event_history.order_execute_win_active
|
134
|
+
event_history.order_execute_row_to_select = 0
|
135
|
+
event_history.order_execute_index_offset = 0
|
136
|
+
end
|
107
137
|
rescue StandardError => e
|
108
138
|
raise e
|
109
139
|
end
|
@@ -119,7 +149,17 @@ module Cryptum
|
|
119
149
|
terminal_win.key_press_event.key_esc = false
|
120
150
|
terminal_win.key_press_event.key_end = false
|
121
151
|
|
122
|
-
|
152
|
+
if event_history.order_plan_win_active
|
153
|
+
order_plan_length = event_history.order_book[:order_plan].length
|
154
|
+
event_history.order_plan_row_to_select = event_history.order_plan_max_rows_to_display
|
155
|
+
event_history.order_plan_index_offset = order_plan_length - event_history.order_plan_max_rows_to_display
|
156
|
+
end
|
157
|
+
|
158
|
+
if event_history.order_execute_win_active
|
159
|
+
order_history_meta_length = event_history.order_book[:order_history_meta].length
|
160
|
+
event_history.order_execute_row_to_select = event_history.order_plan_max_rows_to_display
|
161
|
+
event_history.order_execute_index_offset = order_history_meta_length - event_history.order_execute_max_rows_to_display
|
162
|
+
end
|
123
163
|
rescue StandardError => e
|
124
164
|
raise e
|
125
165
|
end
|
data/lib/cryptum/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cryptum
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.265
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- 0day Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-12-
|
11
|
+
date: 2022-12-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|