diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-02-28 10:23:59 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-02-28 10:43:05 +0100 |
| commit | f9cec7b86a6db8ea5c40dd3f930561591bd5362c (patch) | |
| tree | 3f71af17389c6f760412e7342bb9c87ae68c2140 /vis.c | |
| parent | 28fae462be95a0573113c76d9d2641e73dd1b44e (diff) | |
| download | vis-f9cec7b86a6db8ea5c40dd3f930561591bd5362c.tar.gz vis-f9cec7b86a6db8ea5c40dd3f930561591bd5362c.tar.xz | |
lua: reimplement number increment <C-a> and decrement <C-x>
Based on a patch by Denis Warsow.
Stuff which could probably be improved:
- in vim the cursor does not need to be on top of the number,
it suffices to be on the same line.
- decrementing beyond zero does not work for hexadecimal and
octal numbers, vim seems to wrap around in this case.
0x00000000 <C-x> becomes 0xffffffff
Close #506
Diffstat (limited to 'vis.c')
0 files changed, 0 insertions, 0 deletions
