Skip to content
Permalink
Browse files Browse the repository at this point in the history
Prevent invalid columnPos() call in formUpdateBuffer()
Bug-Debian: #89
  • Loading branch information
tats committed Dec 26, 2017
1 parent 1fd08f3 commit 7fdc83b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions form.c
Expand Up @@ -482,6 +482,8 @@ formUpdateBuffer(Anchor *a, Buffer *buf, FormItemList *form)
rows = form->rows ? form->rows : 1;
col = COLPOS(l, a->start.pos);
for (c_rows = 0; c_rows < rows; c_rows++, l = l->next) {
if (l == NULL)
break;
if (rows > 1) {
pos = columnPos(l, col);
a = retrieveAnchor(buf->formitem, l->linenumber, pos);
Expand Down

0 comments on commit 7fdc83b

Please sign in to comment.