Skip to content

Instantly share code, notes, and snippets.

@justinmk
Created May 20, 2018 19:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinmk/d35c089073666616f21ed6a5891fd711 to your computer and use it in GitHub Desktop.
Save justinmk/d35c089073666616f21ed6a5891fd711 to your computer and use it in GitHub Desktop.
tui.c Windows console patch
diff --git a/src/nvim/tui/tui.c b/src/nvim/tui/tui.c
index 65957626cbc9..86987a56ad07 100644
--- a/src/nvim/tui/tui.c
+++ b/src/nvim/tui/tui.c
@@ -1834,6 +1834,8 @@ static const char *tui_tk_ti_getstr(const char *name, const char *value,
// for mouse input, which by accident only supports X10 protocol.
// Force libtermkey to fallback to its CSI driver (driver-csi.c). #7948
return NULL;
+ } else if (strequal(name, "key_home")) {
+ return "\x1b[1~";
}
-
return value;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment