fix trailing characters

This commit is contained in:
Alex Yatskov 2019-11-11 20:18:54 -08:00
parent aec3ecc838
commit e793d5590b

View File

@ -15,7 +15,7 @@ function! s:guid()
pythonx import uuid pythonx import uuid
let l:guid = pyxeval('str(uuid.uuid4())') let l:guid = pyxeval('str(uuid.uuid4())')
elseif has('windows') elseif has('windows')
let l:guid = system('powershell.exe -command "[guid]::NewGuid().ToString()"') let l:guid = system('powershell.exe -command "[guid]::NewGuid().ToString()"')[:-2]
endif endif
if exists('l:guid') if exists('l:guid')
execute 'normal! a' . l:guid . "\<Esc>" execute 'normal! a' . l:guid . "\<Esc>"