We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ae3b3b commit 071c186Copy full SHA for 071c186
1 file changed
matlab_kernel/kernel.py
@@ -174,10 +174,11 @@ def get_completions(self, info):
174
175
# For structs, we need to return `structname.fieldname` instead of just
176
# `fieldname`, which `mtFindAllTabCompletions` does.
177
+ # For tables also.
178
179
if "." in name:
180
prefix, _ = name.rsplit(".", 1)
- if self._matlab.eval("isstruct({})".format(prefix)):
181
+ if self._matlab.eval("isstruct({})".format(prefix)) or self._matlab.eval("istable({})".format(prefix)):
182
compls = ["{}.{}".format(prefix, compl) for compl in compls]
183
184
return compls
0 commit comments