diff options
| author | Federico Igne <undyamon@disroot.org> | 2024-01-24 21:14:11 +0100 |
|---|---|---|
| committer | Federico Igne <undyamon@disroot.org> | 2024-01-24 21:14:11 +0100 |
| commit | af0cd851fec5038faff5a8133cadad6c65568374 (patch) | |
| tree | 5f594f6140f6e070fb4a96b1ba4d937d7f43d1b7 /lib/command.ml | |
| parent | 7510a0194125ad6229fe8e84f436faa7f87b7c25 (diff) | |
| download | sandy-af0cd851fec5038faff5a8133cadad6c65568374.tar.gz sandy-af0cd851fec5038faff5a8133cadad6c65568374.zip | |
feat: add ability to paste text from a register
Register are simplier than Vim register, in particular no register is
local to buffers.
Diffstat (limited to 'lib/command.ml')
| -rw-r--r-- | lib/command.ml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/command.ml b/lib/command.ml index 74b616a..a55fb9e 100644 --- a/lib/command.ml +++ b/lib/command.ml | |||
| @@ -93,7 +93,8 @@ let n_stream = | |||
| 93 | match (s, k) with | 93 | match (s, k) with |
| 94 | | `start, Key '"' -> (`chord_reg_pre, Partial k) | 94 | | `start, Key '"' -> (`chord_reg_pre, Partial k) |
| 95 | (* Register *) | 95 | (* Register *) |
| 96 | | `chord_reg_pre, Key c -> (`chord_reg c, Partial k) | 96 | | `chord_reg_pre, Key c when Char.('!' <= c && c <= '~') -> |
| 97 | (`chord_reg c, Partial k) | ||
| 97 | (* Count (first) *) | 98 | (* Count (first) *) |
| 98 | | `start, Key n when Char.('1' <= n && n <= '9') -> | 99 | | `start, Key n when Char.('1' <= n && n <= '9') -> |
| 99 | let n = Char.to_int n - 48 in | 100 | let n = Char.to_int n - 48 in |
