Skip to content

Commit 7cbf84c

Browse files
committed
avoid error in ci
1 parent 7616d7f commit 7cbf84c

2 files changed

Lines changed: 9 additions & 8 deletions

File tree

lib/yamatanooroti/windows/terminal.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def self.setup_console(height, width, wait, timeout, name)
3636
end
3737

3838
def console_process_id
39-
@wt.active_tab.pid
39+
@wt.active_tab&.pid
4040
end
4141

4242
def get_size
@@ -83,11 +83,11 @@ def self.diagnose_size_capability
8383
Self.max_size = [[max_size[0], 60].min, [max_size[1], 200].min]
8484
puts max_size.then { |r, c| "Windows Terminal maximum size: rows: #{r}, columns: #{c}" }
8585
wt.close!
86-
wt = self.new(2, 2, 0.01, 5.0)
87-
min_size = wt.get_size
88-
Self.min_size = min_size
89-
puts min_size.then { |r, c| "Windows Terminal smallest size: rows: #{r}, columns: #{c}" }
90-
wt.close!
86+
#wt = self.new(2, 2, 0.01, 5.0)
87+
#min_size = wt.get_size
88+
#Self.min_size = min_size
89+
#puts min_size.then { |r, c| "Windows Terminal smallest size: rows: #{r}, columns: #{c}" }
90+
#wt.close!
9191
puts Self.max_size.then {|r, c| "Use test window size: rows: #{r}, columns: #{c}" }
9292
end
9393

lib/yamatanooroti/windows/wt.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ def initialize(wt, title, *keys)
138138
@keys = [keys] # [[image_name, search_signature], ...]
139139
end
140140
@pid = {}
141+
@console_ready = false
141142
end
142143

143144
def self.new_tab(wt, title)
@@ -148,7 +149,7 @@ def self.new_tab(wt, title)
148149
"#{keeper_command}"
149150

150151
DL.create_console(command, M.show_console_param())
151-
self.new(wt, title, [M.keeper_commandname, signature])
152+
new(wt, title, [M.keeper_commandname, signature])
152153
end
153154

154155
def self.new_tab_hv(wt, title, hsplit, vsplit)
@@ -174,7 +175,7 @@ def self.new_tab_hv(wt, title, hsplit, vsplit)
174175
"#{keeper_command_v}"
175176

176177
DL.create_console(command, M.show_console_param())
177-
self.new(wt, title,
178+
new(wt, title,
178179
[M.keeper_commandname, signature],
179180
[M.keeper_commandname, signature_h],
180181
[M.keeper_commandname, signature_v]

0 commit comments

Comments
 (0)