From 5eaeda44028f6d7a27e6d97356172a68692fc4d6 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Thu, 6 Sep 2018 12:07:09 +0100 Subject: [PATCH] Correct spelling mistakes. --- glfw/glfw3.h | 12 ++++++------ glfw/win32_init.c | 4 ++-- glfw/wl_window.c | 2 +- kitty/complete.py | 2 +- kitty/control-codes.h | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/glfw/glfw3.h b/glfw/glfw3.h index 0dc05cf34..16dc11233 100644 --- a/glfw/glfw3.h +++ b/glfw/glfw3.h @@ -2139,7 +2139,7 @@ GLFWAPI const GLFWvidmode* glfwGetVideoMode(GLFWmonitor* monitor); * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref * GLFW_INVALID_VALUE and @ref GLFW_PLATFORM_ERROR. * - * @remark @wayland Gamma handling is a priviledged protocol, this function + * @remark @wayland Gamma handling is a privileged protocol, this function * will thus never be implemented and emits @ref GLFW_PLATFORM_ERROR. * * @thread_safety This function must only be called from the main thread. @@ -2163,7 +2163,7 @@ GLFWAPI void glfwSetGamma(GLFWmonitor* monitor, float gamma); * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref * GLFW_PLATFORM_ERROR. * - * @remark @wayland Gamma handling is a priviledged protocol, this function + * @remark @wayland Gamma handling is a privileged protocol, this function * will thus never be implemented and emits @ref GLFW_PLATFORM_ERROR while * returning `NULL`. * @@ -2207,7 +2207,7 @@ GLFWAPI const GLFWgammaramp* glfwGetGammaRamp(GLFWmonitor* monitor); * * @remark @win32 The gamma ramp size must be 256. * - * @remark @wayland Gamma handling is a priviledged protocol, this function + * @remark @wayland Gamma handling is a privileged protocol, this function * will thus never be implemented and emits @ref GLFW_PLATFORM_ERROR. * * @pointer_lifetime The specified gamma ramp is copied before this function @@ -2426,7 +2426,7 @@ GLFWAPI void glfwWindowHintString(int hint, const char* value); * * @remark @macos When activating frame autosaving with * [GLFW_COCOA_FRAME_NAME](@ref GLFW_COCOA_FRAME_NAME_hint), the specified - * window size and position may be overriden by previously saved values. + * window size and position may be overridden by previously saved values. * * @remark @x11 Some window managers will not respect the placement of * initially hidden windows. @@ -4578,7 +4578,7 @@ GLFWAPI const unsigned char* glfwGetJoystickHats(int jid, int* count); */ GLFWAPI const char* glfwGetJoystickName(int jid); -/*! @brief Returns the SDL comaptible GUID of the specified joystick. +/*! @brief Returns the SDL compatible GUID of the specified joystick. * * This function returns the SDL compatible GUID, as a UTF-8 encoded * hexadecimal string, of the specified joystick. The returned string is @@ -4792,7 +4792,7 @@ GLFWAPI const char* glfwGetGamepadName(int jid); /*! @brief Retrieves the state of the specified joystick remapped as a gamepad. * - * This function retrives the state of the specified joystick remapped to + * This function retrieves the state of the specified joystick remapped to * an Xbox-like gamepad. * * If the specified joystick is not present or does not have a gamepad mapping diff --git a/glfw/win32_init.c b/glfw/win32_init.c index 3ee5eb853..5ffa2cda0 100644 --- a/glfw/win32_init.c +++ b/glfw/win32_init.c @@ -520,7 +520,7 @@ BOOL _glfwIsWindowsVersionOrGreaterWin32(WORD major, WORD minor, WORD sp) cond = VerSetConditionMask(cond, VER_MINORVERSION, VER_GREATER_EQUAL); cond = VerSetConditionMask(cond, VER_SERVICEPACKMAJOR, VER_GREATER_EQUAL); // HACK: Use RtlVerifyVersionInfo instead of VerifyVersionInfoW as the - // latter lies unless the user knew to embedd a non-default manifest + // latter lies unless the user knew to embed a non-default manifest // announcing support for Windows 10 via supportedOS GUID return RtlVerifyVersionInfo(&osvi, mask, cond) == 0; } @@ -535,7 +535,7 @@ BOOL _glfwIsWindows10BuildOrGreaterWin32(WORD build) cond = VerSetConditionMask(cond, VER_MINORVERSION, VER_GREATER_EQUAL); cond = VerSetConditionMask(cond, VER_BUILDNUMBER, VER_GREATER_EQUAL); // HACK: Use RtlVerifyVersionInfo instead of VerifyVersionInfoW as the - // latter lies unless the user knew to embedd a non-default manifest + // latter lies unless the user knew to embed a non-default manifest // announcing support for Windows 10 via supportedOS GUID return RtlVerifyVersionInfo(&osvi, mask, cond) == 0; } diff --git a/glfw/wl_window.c b/glfw/wl_window.c index 8a2d934a3..0b630ed78 100644 --- a/glfw/wl_window.c +++ b/glfw/wl_window.c @@ -143,7 +143,7 @@ createTmpfileCloexec(char* tmpname) * SCM_RIGHTS methods. * * posix_fallocate() is used to guarantee that disk space is available - * for the file at the given size. If disk space is insufficent, errno + * for the file at the given size. If disk space is insufficient, errno * is set to ENOSPC. If posix_fallocate() is not supported, program may * receive SIGBUS on accessing mmap()'ed file contents instead. */ diff --git a/kitty/complete.py b/kitty/complete.py index 54b4fdf09..1bc106c60 100644 --- a/kitty/complete.py +++ b/kitty/complete.py @@ -35,7 +35,7 @@ completion_scripts = { 'zsh': ''' _kitty() { local src - # Send all words upto the word the cursor is currently on + # Send all words up to the word the cursor is currently on src=$(printf "%s\n" "${(@)words[1,$CURRENT]}" | kitty +complete zsh) if [[ $? == 0 ]]; then eval ${src} diff --git a/kitty/control-codes.h b/kitty/control-codes.h index 09a4ae471..66f1f770c 100644 --- a/kitty/control-codes.h +++ b/kitty/control-codes.h @@ -16,7 +16,7 @@ // *Bell*: Beeps. #define BEL 0x07 -// *Backspace*: Backspace one column, but not past the begining of the +// *Backspace*: Backspace one column, but not past the beginning of the // line. #define BS 0x08