Skip to content

Commit

Permalink
Correct error in expand_message_context call.
Browse files Browse the repository at this point in the history
  • Loading branch information
kohler committed Jan 22, 2024
1 parent 22f07e6 commit 67f6d0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/paperlist.php
Original file line number Diff line number Diff line change
Expand Up @@ -1225,7 +1225,7 @@ function column_error($message) {
if (($sve = $this->search->main_term()->view_anno_element($name))
&& ($mi->status !== MessageSet::INFORM || empty($this->_finding_column_errors))) {
if ($mi->pos1 !== null) {
$mis = $this->search->expand_message_context($mi, $mi->pos1 + $sve->pos1, $mi->pos2 + $sve->pos2, $sve->string_context);
$mis = $this->search->expand_message_context($mi, $mi->pos1 + $sve->pos1, $mi->pos2 + $sve->pos1, $sve->string_context);
} else {
$mis = $this->search->expand_message_context($mi, $sve->kwpos1, $sve->pos2, $sve->string_context);
}
Expand Down

0 comments on commit 67f6d0f

Please sign in to comment.