changeset 57:220c9508ff62

Fixes for Lawrencium files: - Move the cursor to the top of the buffer. - Insert stuff at the first line instead of below it.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 14 Nov 2012 22:16:26 -0800
parents 2b3fb72d5471
children 621185a5fa48
files plugin/lawrencium.vim
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugin/lawrencium.vim	Mon Nov 12 16:47:50 2012 -0800
+++ b/plugin/lawrencium.vim	Wed Nov 14 22:16:26 2012 -0800
@@ -238,7 +238,7 @@
     let l:all_args = [a:command] + a:000
     let l:hg_command = call(self['GetCommand'], l:all_args, self)
     call s:trace("Running Mercurial command: " . l:hg_command)
-    execute 'read !' . escape(l:hg_command, '%#\')
+    execute '0read !' . escape(l:hg_command, '%#\')
 endfunction
 
 " Build a Lawrencium path for the given file and action.
@@ -1198,6 +1198,7 @@
     setlocal nomodified
     setlocal bufhidden=delete
     setlocal buftype=nofile
+    goto
 
     " Remember the repo it belongs to and make
     " the Lawrencium commands available.