Mercurial > vim
comparison src/highlight.c @ 19201:e7b4fff348dd v8.2.0159
patch 8.2.0159: non-materialized range() list causes problems
Commit: https://github.com/vim/vim/commit/50985eb1f0bd3c73ce727f9bbd66c839c92ef0da
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jan 27 22:09:39 2020 +0100
patch 8.2.0159: non-materialized range() list causes problems
Problem: Non-materialized range() list causes problems. (Fujiwara Takuya)
Solution: Materialize the list where needed.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 27 Jan 2020 22:15:07 +0100 |
parents | 847cc7932c42 |
children | ce8c47ed54e5 |
comparison
equal
deleted
inserted
replaced
19200:654ef8f794a6 | 19201:e7b4fff348dd |
---|---|
3737 linenr_T toplnum = 0; | 3737 linenr_T toplnum = 0; |
3738 linenr_T botlnum = 0; | 3738 linenr_T botlnum = 0; |
3739 listitem_T *li; | 3739 listitem_T *li; |
3740 int i; | 3740 int i; |
3741 | 3741 |
3742 range_list_materialize(pos_list); | |
3742 for (i = 0, li = pos_list->lv_first; li != NULL && i < MAXPOSMATCH; | 3743 for (i = 0, li = pos_list->lv_first; li != NULL && i < MAXPOSMATCH; |
3743 i++, li = li->li_next) | 3744 i++, li = li->li_next) |
3744 { | 3745 { |
3745 linenr_T lnum = 0; | 3746 linenr_T lnum = 0; |
3746 colnr_T col = 0; | 3747 colnr_T col = 0; |