Permalink
Browse files

GH-41: Don't run past the end of the term for urls

  • Loading branch information...
1 parent e4a28fb commit 972c52b6c0a9044780412b3616bf26a2904f5241 @FauxFaux committed Jun 25, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 terminal.c
View
@@ -5916,6 +5916,8 @@ void term_mouse(Terminal *term, Mouse_Button braw, Mouse_Button bcooked,
// Jump to next line?
if (((i + 1) % term->cols) == 0) {
row++;
+ if (row >= term->rows)
+ break;
urldata = lineptr(row);
}
}

0 comments on commit 972c52b

Please sign in to comment.