diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-05-04 13:23:44 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-05-04 13:47:45 +0200 |
| commit | 8f92b98848f9366e78c7aa824615bade83971513 (patch) | |
| tree | 8c3253181320ae22abf76a370da339840a96a464 /vis-cmds.c | |
| parent | 583045c2d85f30cfebc7a7689c27c797db2d30f4 (diff) | |
| download | vis-8f92b98848f9366e78c7aa824615bade83971513.tar.gz vis-8f92b98848f9366e78c7aa824615bade83971513.tar.xz | |
vis: clean up interaction between vis and ui
A concrete user interface implementation should not have to depend
on libtermkey. Therefore the vis core now uses an independent instance
to parse keys.
Diffstat (limited to 'vis-cmds.c')
| -rw-r--r-- | vis-cmds.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1,6 +1,5 @@ /* this file is included from sam.c */ -#include <termkey.h> #include "vis-lua.h" #ifndef VIS_OPEN @@ -633,7 +632,7 @@ static void print_symbolic_keys(Vis *vis, Text *txt) { TERMKEY_SYM_KPEQUALS, }; - TermKey *termkey = vis->ui->termkey_get(vis->ui); + TermKey *termkey = vis->termkey; text_appendf(txt, " ␣ (a literal \" \" space symbol must be used to refer to <Space>)\n"); for (size_t i = 0; i < LENGTH(keys); i++) { text_appendf(txt, " <%s>\n", termkey_get_keyname(termkey, keys[i])); |
