Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Change DefinitionFinder to look in the current translation unit firt

  • Loading branch information...
commit a962b55a78ac39a1e176c5a7a140de6bbe47fde8 1 parent 9cc8d0c
@Schmallon authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  plugin/libclang.py
View
2  plugin/libclang.py
@@ -1147,8 +1147,8 @@ def call_function_with_definition_if_exists(cursor):
def _definition_cursors_do(self, function):
for translation_unit_do in [
- lambda f: self._guessed_alternate_translation_units_do(self._editor.file_name(), f),
self._translation_unit_accessor.current_translation_unit_do,
+ lambda f: self._guessed_alternate_translation_units_do(self._editor.file_name(), f),
]:
translation_unit_do(lambda translation_unit: self._definitions_of_current_cursor_do(translation_unit, function))
Please sign in to comment.
Something went wrong with that request. Please try again.