Skip to content

Commit

Permalink
Fix crash in symbols with theorem descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
pfoerster committed May 1, 2020
1 parent 7a88e59 commit 5a676d3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions crates/texlab_symbol/src/latex_section/theorem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@ fn make_symbol(
)
.unwrap_or_else(|| titlecase(env_name));

let desc =
table.print_group_content(env.left.parent, latex::GroupKind::Options, 0);
let desc = main_table.print_group_content(
env.left.parent,
latex::GroupKind::Options,
0,
);

let label = main_table.find_label_by_environment(env);
let number = label
Expand Down

0 comments on commit 5a676d3

Please sign in to comment.