aboutsummaryrefslogtreecommitdiff
path: root/vis-motions.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-02-12 15:57:26 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-02-12 16:15:39 +0100
commitf29228bbdcffdc8810ff8c766a05c6ca63a42086 (patch)
tree7df2502e0314858fd01017333a2eed4a626aa94e /vis-motions.c
parentb4399ffbb402943e1972a9ed04b3ddb3fa6c6cfe (diff)
downloadvis-f29228bbdcffdc8810ff8c766a05c6ca63a42086.tar.gz
vis-f29228bbdcffdc8810ff8c766a05c6ca63a42086.tar.xz
Mark some tables as const
This allows them to be placed into the read only ELF section.
Diffstat (limited to 'vis-motions.c')
-rw-r--r--vis-motions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vis-motions.c b/vis-motions.c
index 63cb0dc..e0db048 100644
--- a/vis-motions.c
+++ b/vis-motions.c
@@ -296,7 +296,7 @@ err:
return false;
}
-Movement vis_motions[] = {
+const Movement vis_motions[] = {
[VIS_MOVE_LINE_UP] = { .cur = view_line_up, .type = LINEWISE },
[VIS_MOVE_LINE_DOWN] = { .cur = view_line_down, .type = LINEWISE },
[VIS_MOVE_SCREEN_LINE_UP] = { .cur = view_screenline_up, },