diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-04-14 21:03:28 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-04-14 21:03:28 +0200 |
| commit | d7c917ea63e0374fc03622d4f21df8ac4c574fae (patch) | |
| tree | 49702ab84115cd1d5b07bc2faedf185804660e10 /vis-cmds.c | |
| parent | 55be869aa4d48615e788558963ae1f48e2563a42 (diff) | |
| download | vis-d7c917ea63e0374fc03622d4f21df8ac4c574fae.tar.gz vis-d7c917ea63e0374fc03622d4f21df8ac4c574fae.tar.xz | |
vis: add #defines to ease overriding of utility names
This should ease packaging for systems with an existing vis(1) binary.
Diffstat (limited to 'vis-cmds.c')
| -rw-r--r-- | vis-cmds.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,5 +1,9 @@ /* this file is included from sam.c */ +#ifndef VIS_OPEN +#define VIS_OPEN "vis-open" +#endif + static void windows_arrange(Vis *vis, enum UiLayout layout) { vis->ui->arrange(vis->ui, layout); } @@ -262,7 +266,7 @@ static const char *file_open_dialog(Vis *vis, const char *pattern) { buffer_init(&bufout); buffer_init(&buferr); - if (!buffer_put0(&bufcmd, "vis-open ") || !buffer_append0(&bufcmd, pattern ? pattern : "")) + if (!buffer_put0(&bufcmd, VIS_OPEN " ") || !buffer_append0(&bufcmd, pattern ? pattern : "")) return NULL; Filerange empty = text_range_empty(); |
