Permalink
Browse files

Watch window variable expansion for Windows, fixes #28

The regular expression matching buffer names was invalid for Windows
backslash characters in paths, so that's now been updated.
  • Loading branch information...
1 parent 00cf6e5 commit a8f2c6c29726a0ffbc70da2ef4d85e84fef52944 @joonty committed Dec 17, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 plugin/python/vdebug/event.py
@@ -21,11 +21,13 @@ def by_position(self):
if event is not None:
return event.execute(self.runner)
else:
+ vdebug.log.Log("No executable event found at current cursor position",\
+ vdebug.log.Logger.DEBUG)
return False
def _get_event_by_position(self):
buf_name = vim.current.buffer.name
- p = re.compile('.*[\\/]([^\\/]+)')
+ p = re.compile('.*[\\\/]([^\\\/]+)')
m = p.match(buf_name)
if m is None:
return None

0 comments on commit a8f2c6c

Please sign in to comment.