We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c9d987 commit 64cbfcdCopy full SHA for 64cbfcd
lib/ruby-debug-ide/command.rb
@@ -152,13 +152,16 @@ def get_context(thnum)
152
end
153
154
def realpath(filename)
155
+ is_dir = filename.end_with?(File::SEPARATOR)
156
if filename.index(File::SEPARATOR) || File::ALT_SEPARATOR && filename.index(File::ALT_SEPARATOR)
157
filename = File.expand_path(filename)
158
159
if (RUBY_VERSION < '1.9') || (RbConfig::CONFIG['host_os'] =~ /mswin/)
160
filename
161
else
- File.realpath(filename) rescue filename
162
+ filename = File.realpath(filename) rescue filename
163
+ filename = filename + File::SEPARATOR if is_dir && !filename.end_with?(File::SEPARATOR)
164
+ filename
165
166
167
0 commit comments