mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-22 16:28:19 +02:00
Fix a couple of typos
This commit is contained in:
@@ -96,7 +96,7 @@ spawn(PyObject *self UNUSED, PyObject *args) {
|
|||||||
#undef exit_on_err
|
#undef exit_on_err
|
||||||
free(argv);
|
free(argv);
|
||||||
free(env);
|
free(env);
|
||||||
if (pid == -1) return NULL;
|
if (PyErr_Occurred()) return NULL;
|
||||||
return PyLong_FromLong(pid);
|
return PyLong_FromLong(pid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -111,9 +111,9 @@ def create_session(opts, args=None, special_window=None, cwd_from=None):
|
|||||||
cmd = args.args if args and args.args else [shell_path]
|
cmd = args.args if args and args.args else [shell_path]
|
||||||
from kitty.tabs import SpecialWindow
|
from kitty.tabs import SpecialWindow
|
||||||
if getattr(args, 'title', None):
|
if getattr(args, 'title', None):
|
||||||
ans.add_window(SpecialWindow(cmd, override_title=args.title, cwd_from=cwd_from))
|
ans.add_special_window(SpecialWindow(cmd, override_title=args.title, cwd_from=cwd_from))
|
||||||
else:
|
else:
|
||||||
ans.add_window(SpecialWindow(cmd, cwd_from=cwd_from))
|
ans.add_special_window(SpecialWindow(cmd, cwd_from=cwd_from))
|
||||||
else:
|
else:
|
||||||
ans.add_special_window(special_window)
|
ans.add_special_window(special_window)
|
||||||
return ans
|
return ans
|
||||||
|
|||||||
Reference in New Issue
Block a user