mirror of
https://github.com/qvacua/vimr.git
synced 2024-12-24 22:33:52 +03:00
GH-321 Fix Cmd-V in term mode
This commit is contained in:
parent
f2060c4643
commit
b07f9c492d
@ -6,12 +6,14 @@
|
|||||||
@import Foundation;
|
@import Foundation;
|
||||||
|
|
||||||
|
|
||||||
|
// Keep in sync with the constants in vim.h
|
||||||
typedef NS_ENUM(NSUInteger, Mode) {
|
typedef NS_ENUM(NSUInteger, Mode) {
|
||||||
Normal = 0x01,
|
Normal = 0x01,
|
||||||
Visual = 0x02,
|
Visual = 0x02,
|
||||||
Cmdline = 0x08,
|
Cmdline = 0x08,
|
||||||
Insert = 0x10,
|
Insert = 0x10,
|
||||||
Replace = 0x50,
|
Replace = 0x50,
|
||||||
|
Term = 0x2000,
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef NS_ENUM(NSUInteger, FontTrait) {
|
typedef NS_ENUM(NSUInteger, FontTrait) {
|
||||||
|
@ -692,7 +692,7 @@ extension NeoVimView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
switch self.mode {
|
switch self.mode {
|
||||||
case .Cmdline, .Insert, .Replace:
|
case .Cmdline, .Insert, .Replace, .Term:
|
||||||
self.agent.vimInput(self.vimPlainString(content))
|
self.agent.vimInput(self.vimPlainString(content))
|
||||||
case .Normal, .Visual:
|
case .Normal, .Visual:
|
||||||
self.agent.vimInput("\"+p")
|
self.agent.vimInput("\"+p")
|
||||||
|
2
neovim
2
neovim
@ -1 +1 @@
|
|||||||
Subproject commit 77775a89161dc6ba6c066cb1dc8f62bc940053e5
|
Subproject commit 6e7962de11e2ac9a4409da9f4f39eae2fee4c347
|
Loading…
Reference in New Issue
Block a user