Skip to content

Commit c78a0c8

Browse files
committed
Finish fix-highlighting. Fix #1188.
2 parents df1330e + fd2d4e0 commit c78a0c8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/EditorCell.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -2423,9 +2423,9 @@ bool EditorCell::FindMatchingQuotes()
24232423
return false;
24242424
}
24252425

2426-
if(pos >= (long)m_text.Length())
2427-
pos = m_text.Length()-1;
2428-
if ((pos >= (long) m_text.Length() - 1)||
2426+
if (pos > (long) m_text.Length())
2427+
pos = (long) m_text.Length();
2428+
if ((pos == (long) m_text.Length()) ||
24292429
(wxString(wxT("\"")).Find(m_text.GetChar(pos)) == -1))
24302430
{
24312431
pos--;

0 commit comments

Comments
 (0)