summaryrefslogtreecommitdiffstats
path: root/player/lua
diff options
context:
space:
mode:
authorCœur <coeur@gmx.fr>2022-04-25 19:27:18 +0800
committerLeo Izen <leo.izen@gmail.com>2022-04-25 09:07:18 -0400
commitbb5b4b1ba61b67da40c85c34376aced9383fc366 (patch)
treeb917b0ad45f31c1187c47424de4159cc28aa730f /player/lua
parent6407095871b8f177996a6ec3ee9a8c4f06bd63ee (diff)
downloadmpv-bb5b4b1ba61b67da40c85c34376aced9383fc366.tar.bz2
mpv-bb5b4b1ba61b67da40c85c34376aced9383fc366.tar.xz
various: fix typos
Diffstat (limited to 'player/lua')
-rw-r--r--player/lua/console.lua2
-rw-r--r--player/lua/osc.lua4
-rw-r--r--player/lua/stats.lua4
3 files changed, 5 insertions, 5 deletions
diff --git a/player/lua/console.lua b/player/lua/console.lua
index 36c0c95426..6401e26850 100644
--- a/player/lua/console.lua
+++ b/player/lua/console.lua
@@ -251,7 +251,7 @@ function next_utf8(str, pos)
return pos
end
--- As above, but finds the previous UTF-8 charcter in 'str' before 'pos'
+-- As above, but finds the previous UTF-8 character in 'str' before 'pos'
function prev_utf8(str, pos)
if pos <= 1 then return pos end
repeat
diff --git a/player/lua/osc.lua b/player/lua/osc.lua
index 5259b5873e..cacc067c05 100644
--- a/player/lua/osc.lua
+++ b/player/lua/osc.lua
@@ -34,7 +34,7 @@ local user_opts = {
seekbarstyle = "bar", -- bar, diamond or knob
seekbarhandlesize = 0.6, -- size ratio of the diamond and knob handle
seekrangestyle = "inverted",-- bar, line, slider, inverted or none
- seekrangeseparate = true, -- wether the seekranges overlay on the bar-style seekbar
+ seekrangeseparate = true, -- whether the seekranges overlay on the bar-style seekbar
seekrangealpha = 200, -- transparency of seekranges
seekbarkeyframes = true, -- use keyframes when dragging the seekbar
title = "${media-title}", -- string compatible with property-expansion
@@ -2834,7 +2834,7 @@ function visibility_mode(mode, no_osd)
end
-- Reset the input state on a mode change. The input state will be
- -- recalcuated on the next render cycle, except in 'never' mode where it
+ -- recalculated on the next render cycle, except in 'never' mode where it
-- will just stay disabled.
mp.disable_key_bindings("input")
mp.disable_key_bindings("window-controls")
diff --git a/player/lua/stats.lua b/player/lua/stats.lua
index c823541ffc..6c2a0afa25 100644
--- a/player/lua/stats.lua
+++ b/player/lua/stats.lua
@@ -145,8 +145,8 @@ local function no_ASS(t)
-- mp.set_osd_ass doesn't support ass-escape. roll our own.
-- similar to mpv's sub/osd_libass.c:mangle_ass(...), excluding
-- space after newlines because no_ASS is not used with multi-line.
- -- space at the begining is replaced with "\\h" because it matters
- -- at the begining of a line, and we can't know where our output
+ -- space at the beginning is replaced with "\\h" because it matters
+ -- at the beginning of a line, and we can't know where our output
-- ends up. no issue if it ends up at the middle of a line.
return tostring(t)
:gsub("\\", ESC_BACKSLASH)