Skip to content

Commit 9f68dbc

Browse files
committed
Merge BlackIkeEagle's function name changes, see #158
Also rename two other functions prefixed with "vdebug:".
2 parents 567eb8c + ce92c9f commit 9f68dbc

File tree

6 files changed

+16
-11
lines changed

6 files changed

+16
-11
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ If you're having trouble with Vdebug in any way, here are the steps you can take
2626

2727
# News
2828

29+
Follow me on Twitter, [@joonty](http://twitter.com/joonty), for Vdebug updates and release news.
30+
2931
**19/07/2013:** there's a known issue with Vdebug and Vim 7.4. Take a look at [issue #98][5] to follow updates and fixes.
3032

3133
**11/06/2013:** Vdebug now has an irc channel on freenode! If you're running into problems installing, configuring or running vdebug, or you just want to ask a general question, join us on **#vdebug**.
@@ -78,7 +80,7 @@ where the path supplied is vdebug's doc directory. This should enable vdebug's h
7880

7981
**Requirements**:
8082

81-
* Vim compiled with Python 2.6+ support, tabs and signs
83+
* Vim compiled with Python 2.6+ support, tabs and signs (for Debian/Ubuntu this is provided in the vim-nox package)
8284
* A programming language that has a DBGP debugger, e.g. PHP, Python, Ruby,
8385
Perl, NodeJS, Tcl...
8486

doc/Vdebug.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ You can evaluate code snippets at the current point of execution, which can be
719719
used to see the result of a condition, arithmetic expressions, etc. These
720720
snippets are written in the language that's being debugged. There are two ways
721721
of evaluating expresions: you can either write them yourself
722-
(|VdebugEvalExpression) or use visual highlighting to select an expression from
722+
(|VdebugEvalExpression|) or use visual highlighting to select an expression from
723723
the source window.
724724

725725
On evaluating an expression, the result is shown in the watch window. To return

plugin/python/vdebug/event.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class VisualEvalEvent(Event):
6060
"""Evaluate a block of code given by visual selection in Vim.
6161
"""
6262
def execute(self,runner):
63-
selection = vim.eval("vdebug:get_visual_selection()")
63+
selection = vim.eval("Vdebug_get_visual_selection()")
6464
runner.eval(selection)
6565
return True
6666

plugin/python/vdebug/ui/vimui.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def open(self):
4242
vim.command('silent tabnew')
4343
self.empty_buf_num = vim.eval('bufnr("%")')
4444
if existing_buffer:
45-
vim.command('call vdebug:edit("%s")' % cur_buf_name)
45+
vim.command('call Vdebug_edit("%s")' % cur_buf_name)
4646

4747
self.tabnr = vim.eval("tabpagenr()")
4848

@@ -230,7 +230,7 @@ def set_file(self,file):
230230
self.file = file
231231
vdebug.log.Log("Setting source file: "+file,vdebug.log.Logger.INFO)
232232
self.focus()
233-
vim.command('call vdebug:edit("%s")' % str(file).replace("\\", "\\\\"))
233+
vim.command('call Vdebug_edit("%s")' % str(file).replace("\\", "\\\\"))
234234

235235
def set_line(self,lineno):
236236
self.focus()

plugin/python/vdebug/util.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import re
55
import os
66
import urllib
7+
import time
78

89
class Keymapper:
910
"""Map and unmap key commands for the Vim user interface.
@@ -202,6 +203,7 @@ class InputStream:
202203
def probe(self):
203204
try:
204205
vim.eval("getchar(0)")
206+
time.sleep(0.1)
205207
except: # vim.error
206208
raise UserInterrupt()
207209

plugin/vdebug.vim

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ python debugger = DebuggerInterface()
112112

113113
" Commands
114114
command! -nargs=? -complete=customlist,s:BreakpointTypes Breakpoint python debugger.set_breakpoint(<q-args>)
115+
command! VdebugStart python debugger.run()
115116
command! -nargs=? BreakpointRemove python debugger.remove_breakpoint(<q-args>)
116117
command! BreakpointWindow python debugger.toggle_breakpoint_window()
117118
command! -nargs=? VdebugEval python debugger.handle_eval(<q-args>)
@@ -140,7 +141,7 @@ endfunction
140141
"
141142
" This should be called if you want to update the options after vdebug has
142143
" been loaded.
143-
function! vdebug:load_options(options)
144+
function! Vdebug_load_options(options)
144145
" Merge options with defaults
145146
let g:vdebug_options = extend(g:vdebug_options_defaults, a:options)
146147
endfunction
@@ -149,7 +150,7 @@ endfunction
149150
"
150151
" This should be called if you want to update the keymappings after vdebug has
151152
" been loaded.
152-
function! vdebug:load_keymaps(keymaps)
153+
function! Vdebug_load_keymaps(keymaps)
153154
" Unmap existing keys, if applicable
154155
if has_key(g:vdebug_keymap, "run")
155156
exe "silent! nunmap ".g:vdebug_keymap["run"]
@@ -187,7 +188,7 @@ function! s:OptionNames(A,L,P)
187188
endif
188189
endfunction
189190

190-
function! vdebug:get_visual_selection()
191+
function! Vdebug_get_visual_selection()
191192
let [lnum1, col1] = getpos("'<")[1:2]
192193
let [lnum2, col2] = getpos("'>")[1:2]
193194
let lines = getline(lnum1, lnum2)
@@ -196,7 +197,7 @@ function! vdebug:get_visual_selection()
196197
return join(lines, "\n")
197198
endfunction
198199

199-
function! vdebug:edit(filename)
200+
function! Vdebug_edit(filename)
200201
try
201202
execute 'buffer' fnameescape(a:filename)
202203
catch /^Vim\%((\a\+)\)\=:E94/
@@ -205,5 +206,5 @@ function! vdebug:edit(filename)
205206
endfunction
206207

207208
silent doautocmd User VdebugPost
208-
call vdebug:load_options(g:vdebug_options)
209-
call vdebug:load_keymaps(g:vdebug_keymap)
209+
call Vdebug_load_options(g:vdebug_options)
210+
call Vdebug_load_keymaps(g:vdebug_keymap)

0 commit comments

Comments
 (0)