##// END OF EJS Templates
Adding value.text fallback if ulinecache returns ''
Jörgen Stenarson -
Show More
@@ -561,6 +561,8 b' class ListTB(TBTools):'
561 Colors.filenameEm, py3compat.cast_unicode(value.filename), Colors.normalEm,
561 Colors.filenameEm, py3compat.cast_unicode(value.filename), Colors.normalEm,
562 Colors.linenoEm, value.lineno, Colors.Normal ))
562 Colors.linenoEm, value.lineno, Colors.Normal ))
563 textline = ulinecache.getline(value.filename, value.lineno)
563 textline = ulinecache.getline(value.filename, value.lineno)
564 if textline == '':
565 textline = py3compat.cast_unicode(value.text, "utf-8")
564
566
565 if textline is not None:
567 if textline is not None:
566 i = 0
568 i = 0
General Comments 0
You need to be logged in to leave comments. Login now