From 7e97a2a1e7564c410236c012d7a6c4b0f141484d Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Wed, 30 Aug 2023 06:43:01 -0700 Subject: make a few names consistent with snake_case --- edit.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'edit.lua') diff --git a/edit.lua b/edit.lua index ef1cda4..7c5e4e0 100644 --- a/edit.lua +++ b/edit.lua @@ -459,13 +459,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 @@ -474,7 +474,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 -- cgit 1.4.1-2-gfad0