summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/fset/fset-buffer.c5
-rw-r--r--src/plugins/fset/fset-command.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/fset/fset-buffer.c b/src/plugins/fset/fset-buffer.c
index 9433c2c0f..a0d875e8e 100644
--- a/src/plugins/fset/fset-buffer.c
+++ b/src/plugins/fset/fset-buffer.c
@@ -651,6 +651,11 @@ fset_buffer_display_line (int y, struct t_fset_option *fset_option)
"value_changed",
(value_changed) ? "1" : "0");
+ /* set other variables */
+ weechat_hashtable_set (fset_buffer_hashtable_extra_vars,
+ "selected_line",
+ (selected_line) ? "1" : "0");
+
/* build string for line */
format_number = weechat_config_integer (fset_config_look_format_number);
line = weechat_string_eval_expression (
diff --git a/src/plugins/fset/fset-command.c b/src/plugins/fset/fset-command.c
index f322b7c1a..0ed9a968d 100644
--- a/src/plugins/fset/fset-command.c
+++ b/src/plugins/fset/fset-command.c
@@ -688,6 +688,9 @@ fset_command_init ()
" - option data, raw format (no colors/spaces):\n"
" - same names prefixed by two underscores, for example: "
"${__name}, ${__type}, ...\n"
+ " - other data:\n"
+ " - ${selected_line}: \"1\" if the line is selected, "
+ "otherwise \"0\"\n"
"\n"
"Keys and input to move in on fset buffer:\n"
" up move one line up\n"