Skip to content
Browse files

Warn if the xquery buffer has changed, but wasn't saved

  • Loading branch information...
1 parent 7dc3189 commit 76bd0fcf707258a2645edf5f22027aa66ed04ba9 @coledarr committed Oct 17, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 ftplugin/xquery.vim
View
6 ftplugin/xquery.vim
@@ -1,6 +1,6 @@
" xquery.vim - <Leader>B or <C-CR> run buffer against marklogic as an xquery
" Maintainer: Darren Cole <http://github.com/coledarr/vim-xqmarklogic>
-" Version: 1.0.3
+" Version: 1.0.4
" TODO: Add support for: GetLatestVimScripts: ### ### :AutoInstall: xqmarklogic
" TODO: see *glvs-plugins* might not work, but should at least try
"
@@ -218,6 +218,10 @@ function! s:QueryMarkLogic(fname)
let l:showDb = b:xqmarklogic_showDb
let l:info=""
+ if &modified
+ echoerr "Buffer has been changed, using last saved version"
+ endif
+
" Could use preview window
"let s:out = tempname()
"pedit s:out

0 comments on commit 76bd0fc

Please sign in to comment.
Something went wrong with that request. Please try again.