diff options
author | Jon Cairns <jon@joncairns.com> | 2014-07-22 12:58:46 +0100 |
---|---|---|
committer | Jon Cairns <jon@joncairns.com> | 2014-07-22 12:58:46 +0100 |
commit | c30f72f13616f87dbdd30de46f0d118a68476ea9 (patch) | |
tree | 969153d7b8297be0bb584e12ab3ad667c94c352b /rubylib | |
parent | 86f3079dba3fbc9ba86c4fb86b23988172412af9 (diff) | |
download | vdebug-c30f72f13616f87dbdd30de46f0d118a68476ea9.zip |
Fix unit tests
Diffstat (limited to 'rubylib')
-rw-r--r-- | rubylib/vdebug.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/rubylib/vdebug.rb b/rubylib/vdebug.rb index d251452..8718cd3 100644 --- a/rubylib/vdebug.rb +++ b/rubylib/vdebug.rb @@ -9,6 +9,7 @@ class Vdebug def start_listening clear_buffer_cache! + vim.command "VdebugOpt background_listener 0" vim.server.remote_send ":python debugger.run()<CR>" sleep 1 end @@ -58,10 +59,10 @@ class Vdebug end def connected? - is_connected = vim.command( - "python print debugger.runner.is_alive()" + status = vim.command( + "python print debugger.status()" ) - is_connected == "True" + %w(break running).include? status end def watch_window_content |