Commits

Evgeny Podjachev  committed bc7f399

Fixed changing mode in YATEStationary.

  • Participants
  • Parent commits b1ae259

Comments (0)

Files changed (1)

File plugin/yate.vim

 
 	let index=str2nr(str)
 
+	autocmd! BufLeave <buffer>
+	autocmd! BufEnter <buffer>
+
 	let pos_in_yate = getpos(".") " save cursor position may halp later
 	exe ':wincmd p'
 	if !a:stationary
 		exe ':wincmd p'
 		call setpos('.', pos_in_yate)
 	endif
+
+	autocmd! BufLeave <buffer> OnBufLeave
+	autocmd! BufEnter <buffer> OnBufEnter
 endfun
 
 fun <SID>AutoCompleteString(str)