Fix a crash when detecting URLs continued onto multiple lines

Fixes #244
This commit is contained in:
Kovid Goyal
2017-12-27 06:35:09 +05:30
parent 4621ff41d9
commit 7ed835cf13
2 changed files with 4 additions and 2 deletions

View File

@@ -269,6 +269,9 @@ class TestDataTypes(BaseTest):
no_url('http: //acme.com')
no_url('http:/ /acme.com')
l4 = create(' xxxxxtekljhgdkjgd')
self.ae(l4.url_end_at(0), 0)
def rewrap(self, lb, lb2):
hb = HistoryBuf(lb2.ynum, lb2.xnum)
cy = lb.rewrap(lb2, hb)