summaryrefslogtreecommitdiff
path: root/src/proto
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-12-13 22:20:09 +0100
committerBram Moolenaar <Bram@vim.org>2018-12-13 22:20:09 +0100
commit98aefe7c3250bb5d4153b994f878594d1745424e (patch)
tree262ae31c2dbf4ac0353f5564a2419a79267fa3ae /src/proto
parent5c5697f29829fc3b21fc5452fe8f239f6a4cb8e1 (diff)
downloadvim-git-98aefe7c3250bb5d4153b994f878594d1745424e.tar.gz
patch 8.1.0579: cannot attach properties to textv8.1.0579
Problem: Cannot attach properties to text. Solution: First part of adding text properties.
Diffstat (limited to 'src/proto')
-rw-r--r--src/proto/memline.pro1
-rw-r--r--src/proto/textprop.pro17
2 files changed, 18 insertions, 0 deletions
diff --git a/src/proto/memline.pro b/src/proto/memline.pro
index d18ede37b..3fa11c702 100644
--- a/src/proto/memline.pro
+++ b/src/proto/memline.pro
@@ -24,6 +24,7 @@ int ml_line_alloced(void);
int ml_append(linenr_T lnum, char_u *line, colnr_T len, int newfile);
int ml_append_buf(buf_T *buf, linenr_T lnum, char_u *line, colnr_T len, int newfile);
int ml_replace(linenr_T lnum, char_u *line, int copy);
+int ml_replace_len(linenr_T lnum, char_u *line_arg, colnr_T len_arg, int copy);
int ml_delete(linenr_T lnum, int message);
void ml_setmarked(linenr_T lnum);
linenr_T ml_firstmarked(void);
diff --git a/src/proto/textprop.pro b/src/proto/textprop.pro
new file mode 100644
index 000000000..62aef4f6b
--- /dev/null
+++ b/src/proto/textprop.pro
@@ -0,0 +1,17 @@
+/* textprop.c */
+void f_prop_add(typval_T *argvars, typval_T *rettv);
+int has_any_text_properties(buf_T *buf);
+int get_text_props(buf_T *buf, linenr_T lnum, char_u **props, int will_change);
+proptype_T *text_prop_type_by_id(buf_T *buf, int id);
+void f_prop_clear(typval_T *argvars, typval_T *rettv);
+void f_prop_list(typval_T *argvars, typval_T *rettv);
+void f_prop_remove(typval_T *argvars, typval_T *rettv);
+void prop_type_set(typval_T *argvars, int add);
+void f_prop_type_add(typval_T *argvars, typval_T *rettv);
+void f_prop_type_change(typval_T *argvars, typval_T *rettv);
+void f_prop_type_delete(typval_T *argvars, typval_T *rettv);
+void f_prop_type_get(typval_T *argvars, typval_T *rettv);
+void f_prop_type_list(typval_T *argvars, typval_T *rettv);
+void clear_global_prop_types(void);
+void clear_buf_prop_types(buf_T *buf);
+/* vim: set ft=c : */