bugfix [#23052] New Bracket Highlighting Patch Causes Seg Fault [Patch to fix attached]
by Justin Dailey (dail) for bracket highlight patch from yesterday.
This commit is contained in:
@@ -1157,7 +1157,7 @@ static void draw_brackets(SpaceText *st, ARegion *ar)
|
||||
c++;
|
||||
while(linep) {
|
||||
while(c<linep->len) {
|
||||
if(linep->format[c] != 'l' && linep->format[c] != '#') {
|
||||
if(linep->format && linep->format[c] != 'l' && linep->format[c] != '#') {
|
||||
b= text_check_bracket(linep->line[c]);
|
||||
if(b==find) {
|
||||
if(stack==0) {
|
||||
@@ -1183,7 +1183,7 @@ static void draw_brackets(SpaceText *st, ARegion *ar)
|
||||
c--;
|
||||
while(linep) {
|
||||
while(c>=0) {
|
||||
if(linep->format[c] != 'l' && linep->format[c] != '#') {
|
||||
if(linep->format && linep->format[c] != 'l' && linep->format[c] != '#') {
|
||||
b= text_check_bracket(linep->line[c]);
|
||||
if(b==find) {
|
||||
if(stack==0) {
|
||||
|
||||
Reference in New Issue
Block a user