Permalink
Browse files

Fix problem with editing empty blocks

  • Loading branch information...
1 parent c0bec22 commit 9fb5cb844a807a2a7101a3215eb0fb411ebb9cd8 @AndrewRadev committed Mar 4, 2012
Showing with 6 additions and 1 deletion.
  1. +3 −1 autoload/inline_edit/proxy.vim
  2. +3 −0 example/example.html
@@ -68,7 +68,9 @@ function! inline_edit#proxy#UpdateOriginalBuffer() dict
call inline_edit#PushCursor()
call cursor(self.start, 1)
- exe self.start . ',' . self.end . 'delete _'
+ if self.end - self.start >= 0
+ exe self.start . ',' . self.end . 'delete _'
+ endif
call append(self.start - 1, new_lines)
if g:inline_edit_autowrite
write
View
@@ -18,6 +18,9 @@
background-color: red;
}
</style>
+
+ <script type="text/javascript">
+ </script>
</head>
<body>

0 comments on commit 9fb5cb8

Please sign in to comment.