aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer_defs.h
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2021-08-22 13:12:58 +0200
committerGitHub <noreply@github.com>2021-08-22 13:12:58 +0200
commit7ebb25cca193063f0a3ff2ec8b6206e0832e1215 (patch)
treefbcfa265403eeaac463038c2b08cd2475f267b30 /src/nvim/buffer_defs.h
parent3d3c0c669d054ef49304223e3b91ac820996d1e0 (diff)
parentc265fd31ab2b0307650ad94e1ea272e9360c345f (diff)
downloadrneovim-7ebb25cca193063f0a3ff2ec8b6206e0832e1215.tar.gz
rneovim-7ebb25cca193063f0a3ff2ec8b6206e0832e1215.tar.bz2
rneovim-7ebb25cca193063f0a3ff2ec8b6206e0832e1215.zip
Merge pull request #15451 from bfredl/metamap
perf(map): get rid of unnecessary pointer indirections for maps.
Diffstat (limited to 'src/nvim/buffer_defs.h')
-rw-r--r--src/nvim/buffer_defs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/buffer_defs.h b/src/nvim/buffer_defs.h
index b03d69a04c..0ae8dd3664 100644
--- a/src/nvim/buffer_defs.h
+++ b/src/nvim/buffer_defs.h
@@ -863,8 +863,8 @@ struct file_buffer {
int b_mapped_ctrl_c; // modes where CTRL-C is mapped
MarkTree b_marktree[1];
- Map(uint64_t, ExtmarkItem) *b_extmark_index;
- Map(uint64_t, ExtmarkNs) *b_extmark_ns; // extmark namespaces
+ Map(uint64_t, ExtmarkItem) b_extmark_index[1];
+ Map(uint64_t, ExtmarkNs) b_extmark_ns[1]; // extmark namespaces
// array of channel_id:s which have asked to receive updates for this
// buffer.