Skip to content

Commit

Permalink
fix #62
Browse files Browse the repository at this point in the history
  • Loading branch information
Yatao Li committed Sep 15, 2019
1 parent 269872a commit 2e3d154
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions neovim/neovim.model.fs
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ let Start opts =

States.Register.Request "get-clipboard" (fun _ -> async {
let! sysClipboard = Async.AwaitTask(Avalonia.Application.Current.Clipboard.GetTextAsync())
let sysClipboard = if String.IsNullOrEmpty sysClipboard then "" else sysClipboard
let sysClipboardLines = sysClipboard.Replace("\r\n", "\n").Split("\n")
let clipboard_eq = Array.compareWith (fun a b -> String.Compare(a,b)) States.clipboard_lines sysClipboardLines

Expand Down

0 comments on commit 2e3d154

Please sign in to comment.