@env.catch_exceptions
def completions():
 (row, col) = env.cursor
 if env.var('a:findstart', True):
  count = 0
  for char in reversed(env.current.line[:col]):
   if (not re.match('[\\w\\d]', char)):
    break
   count += 1
  env.debug('Complete find start', (col - count))
  return env.stop((col - count))
 base = env.var('a:base')
 (source, offset) = env.get_offset_params((row, col), base)
 proposals = get_proporsals(source, offset, base)
 return env.stop(proposals)

@ env . catch_exceptions def completions ( ) : ( row , col ) = env . cursor if env . var ( 'a:findstart' , True ) : count = 0 for char in reversed ( env . current . line [ : col ] ) : if ( not re . match ( '[\\w\\d]' , char ) ) : break count += 1 env . debug ( 'Complete find start' , ( col - count ) ) return env . stop ( ( col - count ) ) base = env . var ( 'a:base' ) ( source , offset ) = env . get_offset_params ( ( row , col ) , base ) proposals = get_proporsals ( source , offset , base ) return env . stop ( proposals )
search completions .