From de3a366d15aa0be6ed8d31810aa6173433b36434 Mon Sep 17 00:00:00 2001 From: kojix2 <2xijok@gmail.com> Date: Sat, 10 Oct 2020 23:16:15 +0900 Subject: [PATCH] Fix debug option --- lib/uplot/command.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/uplot/command.rb b/lib/uplot/command.rb index 67ea266..5c42612 100644 --- a/lib/uplot/command.rb +++ b/lib/uplot/command.rb @@ -28,7 +28,7 @@ module Uplot pass = parser.pass output = parser.output fmt = parser.fmt - debug = parser.debug + @debug = parser.debug if command == :colors Plot.colors @@ -36,7 +36,7 @@ module Uplot end # Sometimes the input file does not end with a newline code. - while input = Kernel.gets(nil) + while (input = Kernel.gets(nil)) input.freeze @raw_inputs << input @data = Preprocessing.input(input, delimiter, headers, transpose)