diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/fs.md | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -483,6 +483,12 @@ pane) and `exec` alike; an unclosed group is refused (``unmatched `{'``). bash's builtin `printf` writes a line at a time, so write a block with a heredoc or `env printf`. +A line number counts newlines as sam's lineaddr does (editors/sam/ +address.c:180), so the empty line just past a text's last newline is an +address: `1` of an empty text is `#0,#0`, `2` of `a\n` is `#2,#2`, and +`Edit 1i/header/` on an empty file inserts; a line past that is `address +out of range`. + `line:col` is a pardes extension to sam's addresses, the spelling Look takes in `file:12:5`: `12:5` is the point at line 12, column 5, and it composes like any simple address (`12:5,14:1`, `12:5+#3`). The column is |
