aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Makefile4
-rw-r--r--src/textadept.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/Makefile b/src/Makefile
index 7450b483..e00d8933 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -379,9 +379,9 @@ else
lspawn_url = http://foicica.com/hg/lspawn/archive/tip.zip
endif
-scintilla_tgz = scintilla360.tgz
+scintilla_tgz = scintilla361.tgz
scinterm_zip = scinterm_1.6.zip
-scintillua_zip = scintillua_3.6.0-1.zip
+scintillua_zip = scintillua_3.6.1-1.zip
lua_tgz = lua-5.3.1.tar.gz
lpeg_tgz = lpeg-0.12.2.tar.gz
lfs_zip = v_1_6_3.zip
diff --git a/src/textadept.c b/src/textadept.c
index 3336a0cf..d6fbb50c 100644
--- a/src/textadept.c
+++ b/src/textadept.c
@@ -1096,7 +1096,7 @@ static int lbuffer_text_range(lua_State *L) {
Scintilla *view = focused_view;
int result = l_globaldoccompare(L, 1);
if (result != 0) view = (result > 0) ? dummy_view : command_entry;
- long min = luaL_checkinteger(L, 2), max = luaL_checkinteger(L, 3);
+ Sci_PositionCR min = luaL_checkinteger(L, 2), max = luaL_checkinteger(L, 3);
luaL_argcheck(L, min <= max, 3, "start > end");
struct Sci_TextRange tr = {{min, max}, malloc(max - min + 1)};
SS(view, SCI_GETTEXTRANGE, 0, (sptr_t)&tr);