Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request mono#771 from sillyotter/master
Browse files Browse the repository at this point in the history
Fixes for mono#763 and mono#762
  • Loading branch information
rneatherway committed Oct 20, 2014
2 parents 5dd9549 + 6ca0a0c commit 55d5eb3
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions vim/ftplugin/fsharp.vim
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,14 @@ augroup fsharp
autocmd!
"remove scratch buffer after selection
"autocmd CursorMovedI * if pumvisible() == 0|pclose|endif
autocmd InsertLeave *.fs* if pumvisible() == 0|pclose|endif

autocmd InsertLeave *.fs* call OnInsertLeave()
autocmd TextChanged *.fs* call OnTextChanged()
autocmd TextChangedI *.fs* call OnTextChanged()
autocmd CursorHold *.fs* call OnCursorHold()
autocmd BufLeave *.fs* call OnBufLeave()
autocmd InsertLeave *.fs[ix]\\\{0,1\} if pumvisible() == 0|pclose|endif

autocmd InsertLeave *.fs[ix]\\\{0,1\} call OnInsertLeave()
autocmd TextChanged *.fs[ix]\\\{0,1\} call OnTextChanged()
autocmd TextChangedI *.fs[ix]\\\{0,1\} call OnTextChanged()
autocmd CursorHold *.fs[ix]\\\{0,1\} call OnCursorHold()
autocmd BufLeave *.fs[ix]\\\{0,1\} call OnBufLeave()
autocmd BufEnter *.fs[ix]\\\{0,1\} call OnBufEnter()
augroup END

com! -buffer -range=% Interactive call s:launchInteractive(<line1>, <line2>)
Expand Down Expand Up @@ -96,7 +97,7 @@ endif
let b:shouldParse = 1

function! OnCursorHold ()
if exists("b:shouldParse") && b:shouldParse
if b:shouldParse
call ShowErrors()
let b:shouldParse = 0
endif
Expand All @@ -110,6 +111,10 @@ endfunction
function! OnInsertLeave()
endfunction

function! OnBufEnter()
call ShowErrors()
endfunction

function! OnBufLeave()
call ClearErrorDetails()
endfunction
Expand Down

0 comments on commit 55d5eb3

Please sign in to comment.