dont -> don't
This commit is contained in:
+2
-2
@@ -421,7 +421,7 @@ When using --new-tab set the title of the tab.
|
||||
--no-response
|
||||
type=bool-set
|
||||
default=false
|
||||
Dont wait for a response giving the id of the newly opened window. Note that
|
||||
Don't wait for a response giving the id of the newly opened window. Note that
|
||||
using this option means that you will not be notified of failures and that
|
||||
the id of the new window will not be printed out.
|
||||
''',
|
||||
@@ -482,7 +482,7 @@ def new_window(boss, window, payload):
|
||||
--no-response
|
||||
type=bool-set
|
||||
default=false
|
||||
Dont wait for a response from kitty. This means that even if no matching window is found,
|
||||
Don't wait for a response from kitty. This means that even if no matching window is found,
|
||||
the command will exit with a success code.
|
||||
'''
|
||||
)
|
||||
|
||||
+1
-1
@@ -336,7 +336,7 @@ render_bitmap(Face *self, int glyph_id, ProcessedBitmap *ans, unsigned int cell_
|
||||
static void
|
||||
downsample_bitmap(ProcessedBitmap *bm, unsigned int width, unsigned int cell_height) {
|
||||
// Downsample using a simple area averaging algorithm. Could probably do
|
||||
// better with bi-cubic or lanczos, but at these small sizes I dont think
|
||||
// better with bi-cubic or lanczos, but at these small sizes I don't think
|
||||
// it matters
|
||||
float ratio = MAX((float)bm->width / width, (float)bm->rows / cell_height);
|
||||
int factor = ceilf(ratio);
|
||||
|
||||
+2
-2
@@ -395,7 +395,7 @@ create_os_window(PyObject UNUSED *self, PyObject *args) {
|
||||
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, OPENGL_REQUIRED_VERSION_MINOR);
|
||||
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
|
||||
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, true);
|
||||
// We dont use depth and stencil buffers
|
||||
// We don't use depth and stencil buffers
|
||||
glfwWindowHint(GLFW_DEPTH_BITS, 0);
|
||||
glfwWindowHint(GLFW_STENCIL_BITS, 0);
|
||||
#ifdef __APPLE__
|
||||
@@ -482,7 +482,7 @@ create_os_window(PyObject UNUSED *self, PyObject *args) {
|
||||
w->handle = glfw_window;
|
||||
update_os_window_references();
|
||||
for (size_t i = 0; i < global_state.num_os_windows; i++) {
|
||||
// On some platforms (macOS) newly created windows dont get the initial focus in event
|
||||
// On some platforms (macOS) newly created windows don't get the initial focus in event
|
||||
OSWindow *q = global_state.os_windows + i;
|
||||
q->is_focused = q == w ? true : false;
|
||||
}
|
||||
|
||||
+1
-1
@@ -306,7 +306,7 @@ line_add_combining_char(Line *self, uint32_t ch, unsigned int x) {
|
||||
CPUCell *cell = self->cpu_cells + x;
|
||||
if (!cell->ch) {
|
||||
if (x > 0 && (self->gpu_cells[x-1].attrs & WIDTH_MASK) == 2 && self->cpu_cells[x-1].ch) cell = self->cpu_cells + x - 1;
|
||||
else return; // dont allow adding combining chars to a null cell
|
||||
else return; // don't allow adding combining chars to a null cell
|
||||
}
|
||||
for (unsigned i = 0; i < arraysz(cell->cc_idx); i++) {
|
||||
if (!cell->cc_idx[i]) { cell->cc_idx[i] = mark_for_codepoint(ch); return; }
|
||||
|
||||
@@ -30,7 +30,7 @@ def handle_cmd(boss, window, cmd):
|
||||
try:
|
||||
ans = func() if payload is None else func(payload)
|
||||
except Exception:
|
||||
if no_response: # dont report errors if --no-response was used
|
||||
if no_response: # don't report errors if --no-response was used
|
||||
return
|
||||
raise
|
||||
response = {'ok': True}
|
||||
|
||||
+1
-1
@@ -1242,7 +1242,7 @@ screen_report_size(Screen *self, unsigned int which) {
|
||||
|
||||
void
|
||||
report_device_status(Screen *self, unsigned int which, bool private) {
|
||||
// We dont implement the private device status codes, since I haven't come
|
||||
// We don't implement the private device status codes, since I haven't come
|
||||
// across any programs that use them
|
||||
unsigned int x, y;
|
||||
static char buf[64];
|
||||
|
||||
+1
-1
@@ -113,7 +113,7 @@ static inline void
|
||||
ensure_sprite_map(FONTS_DATA_HANDLE fg) {
|
||||
SpriteMap *sprite_map = (SpriteMap*)fg->sprite_map;
|
||||
if (!sprite_map->texture_id) realloc_sprite_texture(fg);
|
||||
// We have to rebind since we dont know if the texture was ever bound
|
||||
// We have to rebind since we don't know if the texture was ever bound
|
||||
// in the context of the current OSWindow
|
||||
glActiveTexture(GL_TEXTURE0 + SPRITE_MAP_UNIT);
|
||||
glBindTexture(GL_TEXTURE_2D_ARRAY, sprite_map->texture_id);
|
||||
|
||||
+2
-2
@@ -38,7 +38,7 @@ bool_capabilities = {
|
||||
# https://github.com/kovidgoyal/kitty/blob/master/protocol-extensions.asciidoc
|
||||
'Su',
|
||||
|
||||
# The following are entries that we dont use
|
||||
# The following are entries that we don't use
|
||||
# # background color erase
|
||||
# 'bce',
|
||||
}
|
||||
@@ -283,7 +283,7 @@ string_capabilities = {
|
||||
# Set RGB background color (non-standard used by neovim)
|
||||
'setrgbb': r'\E[48:2:%p1%d:%p2%d:%p3%dm',
|
||||
|
||||
# The following are entries that we dont use
|
||||
# The following are entries that we don't use
|
||||
# # display status line
|
||||
# 'dsl': r'\E]2;\007',
|
||||
# # return from status line
|
||||
|
||||
+1
-1
@@ -191,7 +191,7 @@ def adjust_line_height(cell_height, val):
|
||||
def init_startup_notification_x11(window_handle, startup_id=None):
|
||||
# https://specifications.freedesktop.org/startup-notification-spec/startup-notification-latest.txt
|
||||
from kitty.fast_data_types import init_x11_startup_notification
|
||||
sid = startup_id or os.environ.pop('DESKTOP_STARTUP_ID', None) # ensure child processes dont get this env var
|
||||
sid = startup_id or os.environ.pop('DESKTOP_STARTUP_ID', None) # ensure child processes don't get this env var
|
||||
if not sid:
|
||||
return
|
||||
from .fast_data_types import x11_display
|
||||
|
||||
Reference in New Issue
Block a user