Support sourceReferences and Source request
This commit is contained in:
parent
64187adc01
commit
28b6964aea
2 changed files with 64 additions and 4 deletions
|
|
@ -306,6 +306,16 @@ def ClearBuffer( buf ):
|
|||
buf[ : ] = None
|
||||
|
||||
|
||||
def SetBufferContents( buf, lines, modified=False ):
|
||||
try:
|
||||
if not isinstance( lines, list ):
|
||||
lines = lines.splitlines()
|
||||
|
||||
buf[:] = lines
|
||||
finally:
|
||||
buf.options[ 'modified' ] = modified
|
||||
|
||||
|
||||
def IsCurrent( window, buf ):
|
||||
return vim.current.window == window and vim.current.window.buffer == buf
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue