diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-04-02 13:20:20 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-04-03 21:38:05 +0200 |
| commit | ab2d1ddd0adbeec8061b6560ebedf5a1f7bb5867 (patch) | |
| tree | 0531ad62420a9407bcf21849e592d8104af54484 /vis-prompt.c | |
| parent | 378e3b7c01d07659b85bb77786461e91a1c6d8ab (diff) | |
| download | vis-ab2d1ddd0adbeec8061b6560ebedf5a1f7bb5867.tar.gz vis-ab2d1ddd0adbeec8061b6560ebedf5a1f7bb5867.tar.xz | |
sam: unify vi(m) and sam command line
The following vi commands have been dropped:
- saveas
- xit
- !
The following commands are only recognized in their short form:
- e (edit)
- q (quit)
- s (substitute)
- w (write)
- r (read)
Diffstat (limited to 'vis-prompt.c')
| -rw-r--r-- | vis-prompt.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/vis-prompt.c b/vis-prompt.c index 52a0fbd..3711cc9 100644 --- a/vis-prompt.c +++ b/vis-prompt.c @@ -13,13 +13,8 @@ bool vis_prompt_cmd(Vis *vis, const char *cmd) { return vis_motion(vis, VIS_MOVE_SEARCH_BACKWARD, cmd+1); case '+': case ':': - { register_put0(vis, &vis->registers[VIS_REG_COMMAND], cmd+1); - bool ret = vis_cmd(vis, cmd+1); - if (ret && vis->mode->visual) - ;//vis_mode_switch(vis, VIS_MODE_NORMAL); - return ret; - } + return vis_cmd(vis, cmd+1); default: return false; } |
