@env.catch_exceptions
def reload_changes(changes):
 resources = changes.get_changed_resources()
 moved = _get_moved_resources(changes)
 current = env.curbuf.number
 for f in resources:
  bufnr = env.var(('bufnr("%s")' % f.real_path))
  env.goto_buffer(bufnr)
  path = env.curbuf.name
  if (f in moved):
   path = moved[f].real_path
  env.debug('Reload', f.real_path, path, bufnr)
  env.goto_file(path, 'e!', force=True)
  env.message(('%s has been changed.' % f.real_path), history=True)
 env.goto_buffer(current)

@ env . catch_exceptions def reload_changes ( changes ) : resources = changes . get_changed_resources ( ) moved = _get_moved_resources ( changes ) current = env . curbuf . number for f in resources : bufnr = env . var ( ( 'bufnr("%s")' % f . real_path ) ) env . goto_buffer ( bufnr ) path = env . curbuf . name if ( f in moved ) : path = moved [ f ] . real_path env . debug ( 'Reload' , f . real_path , path , bufnr ) env . goto_file ( path , 'e!' , force = True ) env . message ( ( '%s has been changed.' % f . real_path ) , history = True ) env . goto_buffer ( current )
reload changed buffers .