summaryrefslogtreecommitdiffstats
path: root/DOCS/man/lua.rst
diff options
context:
space:
mode:
Diffstat (limited to 'DOCS/man/lua.rst')
-rw-r--r--DOCS/man/lua.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/DOCS/man/lua.rst b/DOCS/man/lua.rst
index cae764e22e..06450b112b 100644
--- a/DOCS/man/lua.rst
+++ b/DOCS/man/lua.rst
@@ -22,8 +22,8 @@ A script which leaves fullscreen mode when the player is paused:
::
- function on_pause(name, value)
- if pause == true then
+ function on_pause_change(name, value)
+ if value == true then
mp.set_property("fullscreen", "no")
end
end