Skip to content
This repository has been archived by the owner on Feb 17, 2021. It is now read-only.

Commit

Permalink
spaces to tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroenrinzema committed Nov 19, 2018
1 parent 0592b9d commit a9e793d
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions subl3/gocode.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ def fetch_query_completions(self, view, prefix, location):
:param view: currently active sublime view
:type view: sublime.View
:param prefix: string for completions
:type prefix: basestring
:param locations: offset from beginning
:type locations: int
:type prefix: basestring
:param locations: offset from beginning
:type locations: int
"""

self._running = True
Expand Down Expand Up @@ -186,18 +186,18 @@ def open_query_completions(self, view):
def on_query_completions(self, view, prefix, locations):
"""Sublime autocomplete event handler.
Get completions depends on current cursor position and return
them as list of ('possible completion', 'completion type')
Get completions depends on current cursor position and return
them as list of ('possible completion', 'completion type')
:param view: currently active sublime view
:type view: sublime.View
:param prefix: string for completions
:type prefix: basestring
:param locations: offset from beginning
:type locations: int
:param view: currently active sublime view
:type view: sublime.View
:param prefix: string for completions
:type prefix: basestring
:param locations: offset from beginning
:type locations: int
:return: list of tuple(str, str)
"""
:return: list of tuple(str, str)
"""

loc = locations[0]

Expand All @@ -218,8 +218,8 @@ def on_query_completions(self, view, prefix, locations):
self._prefix = prefix

sublime.set_timeout_async(
lambda: self.fetch_query_completions(view, prefix, loc)
)
lambda: self.fetch_query_completions(view, prefix, loc)
)

return []

Expand Down

0 comments on commit a9e793d

Please sign in to comment.