diff options
author | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2018-03-10 13:11:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-10 13:11:39 +0100 |
commit | 575daf4af7680c537e6d1cba513b3fb6307cd292 (patch) | |
tree | 3aeef5a3c8d2d85359df4d9093e62ff4e17e50b7 | |
parent | 6a3a3873e9a8d905a9ed3a2656792cb94223155f (diff) | |
parent | 097a9f4988333b1d445ba70df006da6ef26bfaa9 (diff) | |
download | irssi-575daf4af7680c537e6d1cba513b3fb6307cd292.zip |
Merge pull request #852 from dequis/document-cat-seek
Document second parameter (seek position) of /cat command
-rw-r--r-- | docs/help/in/cat.in | 6 | ||||
-rw-r--r-- | src/fe-common/core/fe-core-commands.c | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/docs/help/in/cat.in b/docs/help/in/cat.in index 3a3ed32b..9f9f242f 100644 --- a/docs/help/in/cat.in +++ b/docs/help/in/cat.in @@ -5,12 +5,16 @@ %9Parameters:%9 - The file to display. + The file to display and optionally a position to seek in the file, + in bytes. %9Description:%9 Displays the contents of the specified file into the active window. + The seek position parameter is used internally to display away logs, if + omitted the whole file is shown. + %9Examples:%9 /CAT /etc/network/interfaces diff --git a/src/fe-common/core/fe-core-commands.c b/src/fe-common/core/fe-core-commands.c index fb98cc25..222543d5 100644 --- a/src/fe-common/core/fe-core-commands.c +++ b/src/fe-common/core/fe-core-commands.c @@ -114,7 +114,7 @@ static void cmd_version(char *data) } } -/* SYNTAX: CAT <file> */ +/* SYNTAX: CAT <file> [<seek position>] */ static void cmd_cat(const char *data) { char *fname, *fposstr; |