mirror of
https://github.com/weechat/weechat.git
synced 2026-07-10 03:33:12 +02:00
doc: fix typo in example for function string_eval_expression (plugin API reference)
This commit is contained in:
@@ -1702,9 +1702,9 @@ Script (Python):
|
|||||||
str = weechat.string_eval_expression(expr, pointers, extra_vars)
|
str = weechat.string_eval_expression(expr, pointers, extra_vars)
|
||||||
|
|
||||||
# examples
|
# examples
|
||||||
str1 = weechat.string_input_for_buffer("${buffer.full_name}", {}, {}) # "core.weechat"
|
str1 = weechat.string_eval_expression("${buffer.full_name}", {}, {}) # "core.weechat"
|
||||||
str2 = weechat.string_input_for_buffer("${window.win_width} > 100", {}, {}) # "1"
|
str2 = weechat.string_eval_expression("${window.win_width} > 100", {}, {}) # "1"
|
||||||
str3 = weechat.string_input_for_buffer("abc =~ def", {}, {}) # "0"
|
str3 = weechat.string_eval_expression("abc =~ def", {}, {}) # "0"
|
||||||
----------------------------------------
|
----------------------------------------
|
||||||
|
|
||||||
[[utf-8]]
|
[[utf-8]]
|
||||||
|
|||||||
@@ -1727,9 +1727,9 @@ Script (Python) :
|
|||||||
str = weechat.string_eval_expression(expr, pointers, extra_vars)
|
str = weechat.string_eval_expression(expr, pointers, extra_vars)
|
||||||
|
|
||||||
# exemples
|
# exemples
|
||||||
str1 = weechat.string_input_for_buffer("${buffer.full_name}", {}, {}) # "core.weechat"
|
str1 = weechat.string_eval_expression("${buffer.full_name}", {}, {}) # "core.weechat"
|
||||||
str2 = weechat.string_input_for_buffer("${window.win_width} > 100", {}, {}) # "1"
|
str2 = weechat.string_eval_expression("${window.win_width} > 100", {}, {}) # "1"
|
||||||
str3 = weechat.string_input_for_buffer("abc =~ def", {}, {}) # "0"
|
str3 = weechat.string_eval_expression("abc =~ def", {}, {}) # "0"
|
||||||
----------------------------------------
|
----------------------------------------
|
||||||
|
|
||||||
[[utf-8]]
|
[[utf-8]]
|
||||||
|
|||||||
@@ -1686,9 +1686,9 @@ Script (Python):
|
|||||||
str = weechat.string_eval_expression(expr, pointers, extra_vars)
|
str = weechat.string_eval_expression(expr, pointers, extra_vars)
|
||||||
|
|
||||||
# esempi
|
# esempi
|
||||||
str1 = weechat.string_input_for_buffer("${buffer.full_name}", {}, {}) # "core.weechat"
|
str1 = weechat.string_eval_expression("${buffer.full_name}", {}, {}) # "core.weechat"
|
||||||
str2 = weechat.string_input_for_buffer("${window.win_width} > 100", {}, {}) # "1"
|
str2 = weechat.string_eval_expression("${window.win_width} > 100", {}, {}) # "1"
|
||||||
str3 = weechat.string_input_for_buffer("abc =~ def", {}, {}) # "0"
|
str3 = weechat.string_eval_expression("abc =~ def", {}, {}) # "0"
|
||||||
----------------------------------------
|
----------------------------------------
|
||||||
|
|
||||||
[[utf-8]]
|
[[utf-8]]
|
||||||
|
|||||||
Reference in New Issue
Block a user