Mercurial > vim
comparison src/structs.h @ 15335:18c20ceee4b5 v8.1.0675
patch 8.1.0675: text property column in screen columns is not practical
commit https://github.com/vim/vim/commit/b9c67a51c15481d9257e5c26581d17780e9808d5
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jan 1 19:49:20 2019 +0100
patch 8.1.0675: text property column in screen columns is not practical
Problem: Text property column is screen columns is not practical.
Solution: Use byte values for the column.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 01 Jan 2019 20:00:07 +0100 |
parents | 7f42b06b2f72 |
children | 58b125df3e9b |
comparison
equal
deleted
inserted
replaced
15334:9d3d7b0f4861 | 15335:18c20ceee4b5 |
---|---|
703 * When stored in memline they are after the text, ml_line_len is larger than | 703 * When stored in memline they are after the text, ml_line_len is larger than |
704 * STRLEN(ml_line_ptr) + 1. | 704 * STRLEN(ml_line_ptr) + 1. |
705 */ | 705 */ |
706 typedef struct textprop_S | 706 typedef struct textprop_S |
707 { | 707 { |
708 colnr_T tp_col; // start column (one based) | 708 colnr_T tp_col; // start column (one based, in bytes) |
709 colnr_T tp_len; // length in bytes | 709 colnr_T tp_len; // length in bytes |
710 int tp_id; // identifier | 710 int tp_id; // identifier |
711 int tp_type; // property type | 711 int tp_type; // property type |
712 int tp_flags; // TP_FLAG_ values | 712 int tp_flags; // TP_FLAG_ values |
713 } textprop_T; | 713 } textprop_T; |