Skip to content

Commit aa6d832

Browse files
committed
予測変換修正
1 parent fa62801 commit aa6d832

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

jcclient.rb

+2-8
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def command str
108108
end
109109
return false
110110
end
111-
#when "print" then
111+
when "print" then
112112
when "help" then
113113
f = open("./doc/help.txt")
114114
puts f.read
@@ -151,12 +151,6 @@ def piece_name? name
151151
end
152152
end
153153

154-
#if ARGV.length == 0
155-
# ipaddr = "localhost"
156-
#else
157-
# ipaddr = ARGV[0]
158-
#end
159-
160154
def cmdline
161155
args = {ipaddr: "localhost", port: "1117"}
162156
OptionParser.new do |parser|
@@ -192,7 +186,7 @@ def cmdline
192186

193187
consol += "> "
194188

195-
WORDS = %w(foo foobar foobaz)
189+
WORDS = %w(move set print help)
196190

197191
Readline.completion_proc = proc {|word|
198192
WORDS.grep(/\A#{Regexp.quote word}/)

pieces/kaku.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ def move? before, after
2020
end
2121

2222
def to_s
23-
disp ""
23+
disp ""
2424
end
2525
end

0 commit comments

Comments
 (0)