summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-01-12 17:05:05 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-01-12 17:05:05 +0000
commit1698500f8094e7e885b92371f23045cc827bfad6 (patch)
tree23d4751076f6864336a79ba43ff9211d860781f0 /docs
parent1a3c700838fa1cbfab750dc317ee41e68d77cc31 (diff)
downloadirssi-1698500f8094e7e885b92371f23045cc827bfad6.zip
$[.10]var truncates the var to 10 chars, but doesn't pad if var is
shorter than 10 chars git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1105 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'docs')
-rw-r--r--docs/special_vars.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/special_vars.txt b/docs/special_vars.txt
index 81e30a78..a5e376f0 100644
--- a/docs/special_vars.txt
+++ b/docs/special_vars.txt
@@ -7,7 +7,7 @@ referred to as expandos. They are special in that the client is
constantly updating their values automatically. There are also
numerous variable modifiers available.
- Modifier Description
+ Modifier Description
$variable A normal variable, expanding to the first match of:
| 1) an internal SET variable
| 2) an environment variable
@@ -16,7 +16,9 @@ numerous variable modifiers available.
| The value is padded to meet the width with the
| character given after number (default is space).
| The value is truncated to specified width unless
- | '!' character precedes the number.
+ | '!' character precedes the number. If '.' character
+ | precedes the number the value isn't padded, just
+ | truncated.
$#variable Expands to the number of words in $variable. If $variable
| is omitted, it assumes $*
$@variable Expands to the number of characters in $variable. if