diff options
author | Abinoam P. Marques Jr <abinoam@gmail.com> | 2017-06-29 02:15:53 -0300 |
---|---|---|
committer | Abinoam P. Marques Jr <abinoam@gmail.com> | 2017-06-29 02:15:53 -0300 |
commit | 59fabfa47ca52a424b3081d43371f05b767f9cc4 (patch) | |
tree | 9442fdfe36bf3009e94acb120a1f5532c48b988e | |
parent | 4119e3eb2d09cc1243d63e69755e768b407da1a5 (diff) | |
download | highline-59fabfa47ca52a424b3081d43371f05b767f9cc4.tar.gz |
Initialize @track_eof at the instance
-rwxr-xr-x | lib/highline.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/highline.rb b/lib/highline.rb index bda257e..40e5623 100755 --- a/lib/highline.rb +++ b/lib/highline.rb @@ -68,9 +68,6 @@ class HighLine true end - # The setting used to disable EOF tracking. - @track_eof = true - # Pass +false+ to _setting_ to turn off HighLine's EOF tracking. def self.track_eof=( setting ) @track_eof = setting @@ -144,6 +141,7 @@ class HighLine @prompt = nil @key = nil @use_color = true + @track_eof = true # The setting used to disable EOF tracking. @terminal = HighLine::Terminal.get_terminal(input, output) end |