From 659746eaaf4ddc976df93364188592f0405949aa Mon Sep 17 00:00:00 2001 From: Nader Akoury Date: Fri, 11 Nov 2016 10:53:26 -0800 Subject: [PATCH] Doh, forgot to revert my previous changes. Fixed! --- python/ycm/vimsupport.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/python/ycm/vimsupport.py b/python/ycm/vimsupport.py index f30de92a..be41b607 100644 --- a/python/ycm/vimsupport.py +++ b/python/ycm/vimsupport.py @@ -895,15 +895,6 @@ def OpenFileInPreviewWindow( filename ): vim.command( 'silent! pedit! ' + filename ) -def GetPreviewBuffer(): - """ Get the preview buffer. Create it if it does not exist. """ - variable_name = 'g:ycm_preview_buffer_name' - if not VariableExists( variable_name ): - SetVariableValue( variable_name, vim.eval( 'tempname()' ) ) - - return GetVariableValue( variable_name ) - - def WriteToPreviewWindow( message ): """ Display the supplied message in the preview window """ @@ -916,7 +907,7 @@ def WriteToPreviewWindow( message ): ClosePreviewWindow() - OpenFileInPreviewWindow( GetPreviewBuffer() ) + OpenFileInPreviewWindow( vim.eval( 'tempname()' ) ) if JumpToPreviewWindow(): # We actually got to the preview window. By default the preview window can't