The string looks like the end of markup and confuses one piece of code.
Signed-off-by: NeilBrown <neil@brown.name>
Bugs to be fixed
----------------
-- [ ] Text containg </> is a problem. If cursor is just after, it is drawn
+- [X] Text containg </> is a problem. If cursor is just after, it is drawn
at start-of-line... oh, I think I know why.
- [ ] search matches aren't highlighted where there is other highlighting
like line-too-long or diff colouring
{
if (ci->str) {
int l = strlen(ci->str);
- while (l >=3 && strncmp(ci->str+l-3, "</>", 3) == 0)
+ while (l >=4 && strncmp(ci->str+l-3, "</>", 3) == 0 &&
+ ci->str[l-4] != '<')
l -= 3;
return l + 1;
} else