about summary refs log tree commit diff stats
path: root/edit.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2023-08-30 22:45:37 -0700
committerKartik K. Agaram <vc@akkartik.com>2023-08-30 22:45:37 -0700
commit1fc11feb28bf336f9a1d74e014ad4c7418001047 (patch)
treea1dd933af786edcb1cc8341b55c513093349b9a4 /edit.lua
parente1fcd7c9c37a81c6198a2162b6348fe595ef21d5 (diff)
parent06ad5c4e8ce1c4a78db7eb11b680758fab68cc69 (diff)
downloadview.love-1fc11feb28bf336f9a1d74e014ad4c7418001047.tar.gz
Merge lines.love
Diffstat (limited to 'edit.lua')
-rw-r--r--edit.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/edit.lua b/edit.lua
index fd7448b..446d76d 100644
--- a/edit.lua
+++ b/edit.lua
@@ -339,13 +339,13 @@ function edit.keychord_press(State, chord, key)
   elseif chord == 'C-c' then
     local s = Text.selection(State)
     if s then
-      App.setClipboardText(s)
+      App.set_clipboard(s)
     end
   elseif chord == 'C-x' then
     for _,line_cache in ipairs(State.line_cache) do line_cache.starty = nil end  -- just in case we scroll
     local s = Text.cut_selection(State, State.left, State.right)
     if s then
-      App.setClipboardText(s)
+      App.set_clipboard(s)
     end
     schedule_save(State)
   elseif chord == 'C-v' then
@@ -354,7 +354,7 @@ function edit.keychord_press(State, chord, key)
     -- and sometimes scroll when we didn't quite need to.
     local before_line = State.cursor1.line
     local before = snapshot(State, before_line)
-    local clipboard_data = App.getClipboardText()
+    local clipboard_data = App.get_clipboard()
     for _,code in utf8.codes(clipboard_data) do
       local c = utf8.char(code)
       if c == '\n' then