Skip to content

Commit

Permalink
Merge pull request #44 from headius/rbconfig_platform
Browse files Browse the repository at this point in the history
Use host_os from RbConfig to detect host OS.
  • Loading branch information
aycabta authored Jul 28, 2019
2 parents d92ee5b + 1cfa522 commit 11fded2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reline.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module Reline
FILENAME_COMPLETION_PROC = nil
USERNAME_COMPLETION_PROC = nil

if RUBY_PLATFORM =~ /mswin|mingw/
if RbConfig::CONFIG['host_os'] =~ /mswin|msys|mingw|cygwin|bccwin|wince|emc/
IS_WINDOWS = true
else
IS_WINDOWS = false
Expand Down

0 comments on commit 11fded2

Please sign in to comment.