Merge pull request #5906 from eatkins/windows-capability-typo

Fix typo in windows end key capability
This commit is contained in:
Ethan Atkins 2020-09-28 17:51:53 -07:00 committed by GitHub
commit 57af6ba9b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ private[util] class WindowsInputStream(term: org.jline.terminal.Terminal, in: In
// VK_END, VK_INSERT and VK_DELETE are not in the ansi key bindings so we // VK_END, VK_INSERT and VK_DELETE are not in the ansi key bindings so we
// have to manually apply the the sequences here and in JLine3.wrap // have to manually apply the the sequences here and in JLine3.wrap
case 0x23 /* VK_END */ => case 0x23 /* VK_END */ =>
Option(getCapability(Capability.key_end)).getOrElse("\u001B[4!") Option(getCapability(Capability.key_end)).getOrElse("\u001B[4~")
case 0x2D /* VK_INSERT */ => case 0x2D /* VK_INSERT */ =>
Option(getCapability(Capability.key_ic)).getOrElse("\u001B[2~") Option(getCapability(Capability.key_ic)).getOrElse("\u001B[2~")
case 0x2E /* VK_DELETE */ => case 0x2E /* VK_DELETE */ =>