summaryrefslogtreecommitdiffstats
path: root/DOCS
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-02-11 01:25:15 +0100
committerwm4 <wm4@nowhere>2014-02-11 01:25:15 +0100
commitc776ac33e30323f56d778683ae0fc37a4e7ecc82 (patch)
tree1293695ddcc0b01d2bac92a14614b0abef1c8c21 /DOCS
parentd473933923fa03e9fbb07b69fd7f1267ef424baf (diff)
downloadmpv-c776ac33e30323f56d778683ae0fc37a4e7ecc82.tar.bz2
mpv-c776ac33e30323f56d778683ae0fc37a4e7ecc82.tar.xz
manpage: move description of script shutdown to a separate paragraph
No other changes, just adding a paragraph break and reflowing the text.
Diffstat (limited to 'DOCS')
-rw-r--r--DOCS/man/en/lua.rst10
1 files changed, 6 insertions, 4 deletions
diff --git a/DOCS/man/en/lua.rst b/DOCS/man/en/lua.rst
index 4578ced97d..bc2e8f4428 100644
--- a/DOCS/man/en/lua.rst
+++ b/DOCS/man/en/lua.rst
@@ -22,10 +22,12 @@ first run "as is", and once that is done, the event loop is entered. This
event loop will dispatch events received by mpv and call your own event
handlers which you have registered with ``mp.register_event``, or timers
added with ``mp.add_timeout`` or similar. When the player quits, all scripts
-will be asked to terminate. This happens via a ``shutdown`` event, which by
-default will make the event loop return. If your script got into an endless
-loop, mpv will probably behave fine during playback, but it won't terminate
-when quitting because it's waiting on your script.
+will be asked to terminate.
+
+This happens via a ``shutdown`` event, which by default will make the event
+loop return. If your script got into an endless loop, mpv will probably behave
+fine during playback, but it won't terminate when quitting because it's waiting
+on your script.
Internally, the C code will call the Lua function ``mp_event_loop`` after
loading a Lua script. This function is normally defined by the default prelude