cryptum 0.0.264 → 0.0.266
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 +22 -2
- 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: 794571773dea336ec731c3edcdaa200615b7cdc1a0a43934e51d069fff684200
|
4
|
+
data.tar.gz: 6f29565fdd9b217519ce18153589d5cc9610ca1ba39ce21d6006d8e3b520188b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2539d7815a052a7fb044cf215d9b2ea504587fc48057ffbe1d19b47e5000dea99d651b8fce89b41257ff7d2a592a5dc4d75e856fa93a10c16bceeed0341570f7
|
7
|
+
data.tar.gz: a38aec4f377e6d30bf23521546863821b3fa9164796ef03a235d95fa69c827d47db83dd168b876c74a301f73c19f95f6308dddfede19a8ac8fabd9e3240d2ce4
|
data/lib/cryptum/event/scroll.rb
CHANGED
@@ -73,14 +73,14 @@ module Cryptum
|
|
73
73
|
|
74
74
|
if event_history.order_plan_win_active
|
75
75
|
event_history.order_plan_row_to_select = 0
|
76
|
-
event_history.order_plan_index_offset -= event_history.order_plan_max_rows_to_display
|
76
|
+
event_history.order_plan_index_offset -= event_history.order_plan_max_rows_to_display + 1
|
77
77
|
event_history.order_plan_index_offset = 0 if event_history.order_plan_index_offset.negative?
|
78
78
|
event_history.order_plan_row_to_select = 0 if event_history.order_plan_row_to_select.negative?
|
79
79
|
end
|
80
80
|
|
81
81
|
if event_history.order_execute_win_active
|
82
82
|
event_history.order_execute_row_to_select = 0
|
83
|
-
event_history.order_execute_index_offset -= event_history.order_execute_max_rows_to_display
|
83
|
+
event_history.order_execute_index_offset -= event_history.order_execute_max_rows_to_display + 1
|
84
84
|
event_history.order_execute_index_offset = 0 if event_history.order_execute_index_offset.negative?
|
85
85
|
event_history.order_execute_row_to_select = 0 if event_history.order_execute_row_to_select.negative?
|
86
86
|
end
|
@@ -125,6 +125,15 @@ module Cryptum
|
|
125
125
|
terminal_win.key_press_event.key_esc = false
|
126
126
|
terminal_win.key_press_event.key_home = false
|
127
127
|
|
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
|
128
137
|
rescue StandardError => e
|
129
138
|
raise e
|
130
139
|
end
|
@@ -140,6 +149,17 @@ module Cryptum
|
|
140
149
|
terminal_win.key_press_event.key_esc = false
|
141
150
|
terminal_win.key_press_event.key_end = false
|
142
151
|
|
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
|
143
163
|
rescue StandardError => e
|
144
164
|
raise e
|
145
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.266
|
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
|