From ddba5e40b1f784b17484775c9fd8316a47da3e60 Mon Sep 17 00:00:00 2001 From: Simon Lydell Date: Fri, 26 Feb 2016 14:11:00 +0100 Subject: [PATCH] Use `vim.options` instead of `prefs.get` in commands.coffee --- extension/lib/commands.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extension/lib/commands.coffee b/extension/lib/commands.coffee index c527757..71b764b 100644 --- a/extension/lib/commands.coffee +++ b/extension/lib/commands.coffee @@ -173,7 +173,7 @@ helper_scrollByLinesY = (amount, {vim, uiEvent, count = 1}) -> [amount * distance * count * 20]) helper_scrollByPagesY = (amount, type, {vim, uiEvent, count = 1}) -> - adjustment = prefs.get("scroll.#{type}_page_adjustment") + adjustment = vim.options["scroll.#{type}_page_adjustment"] helper_scroll(vim, uiEvent, 'scrollBy', 'pages', ['top'], [amount * count], ['clientHeight'], adjustment) -- 2.39.3