Fix line number matching bug
This commit is contained in:
@@ -225,7 +225,7 @@ function ExtractLineAndColumn(s)
|
|||||||
s = s:sub(1, lci - 1)
|
s = s:sub(1, lci - 1)
|
||||||
return line, col, s
|
return line, col, s
|
||||||
else
|
else
|
||||||
local li, lj = s:find("(%d+):$")
|
local li, lj = s:find("%(%d+%):$")
|
||||||
if li then
|
if li then
|
||||||
local line_string = s:sub(li, lj)
|
local line_string = s:sub(li, lj)
|
||||||
line = line_string:sub(2, -3)
|
line = line_string:sub(2, -3)
|
||||||
@@ -244,7 +244,7 @@ function ExtractLineAndColumn(s)
|
|||||||
s = s:sub(1, lci - 1)
|
s = s:sub(1, lci - 1)
|
||||||
return line, col, s
|
return line, col, s
|
||||||
else
|
else
|
||||||
local li, lj = s:find("(%d+)$")
|
local li, lj = s:find("%(%d+%)$")
|
||||||
if li then
|
if li then
|
||||||
local line_string = s:sub(li, lj)
|
local line_string = s:sub(li, lj)
|
||||||
line = line_string:sub(2, -2)
|
line = line_string:sub(2, -2)
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ function ExtractLineAndColumn(s)
|
|||||||
s = s:sub(1, lci - 1)
|
s = s:sub(1, lci - 1)
|
||||||
return line, col, s
|
return line, col, s
|
||||||
else
|
else
|
||||||
local li, lj = s:find("(%d+):$")
|
local li, lj = s:find("%(%d+%):$")
|
||||||
if li then
|
if li then
|
||||||
local line_string = s:sub(li, lj)
|
local line_string = s:sub(li, lj)
|
||||||
line = line_string:sub(2, -3)
|
line = line_string:sub(2, -3)
|
||||||
@@ -114,7 +114,7 @@ function ExtractLineAndColumn(s)
|
|||||||
s = s:sub(1, lci - 1)
|
s = s:sub(1, lci - 1)
|
||||||
return line, col, s
|
return line, col, s
|
||||||
else
|
else
|
||||||
local li, lj = s:find("(%d+)$")
|
local li, lj = s:find("%(%d+%)$")
|
||||||
if li then
|
if li then
|
||||||
local line_string = s:sub(li, lj)
|
local line_string = s:sub(li, lj)
|
||||||
line = line_string:sub(2, -2)
|
line = line_string:sub(2, -2)
|
||||||
|
|||||||
@@ -155,6 +155,8 @@ luaL_Reg LuaFunctions[] = {
|
|||||||
{ "FileExists", LuaFileExists},
|
{ "FileExists", LuaFileExists},
|
||||||
{"GetCurrentBufferName", LuaGetCurrentBufferName},
|
{"GetCurrentBufferName", LuaGetCurrentBufferName},
|
||||||
{ "GetCurrentBufferDir", LuaGetCurrentBufferDir},
|
{ "GetCurrentBufferDir", LuaGetCurrentBufferDir},
|
||||||
|
{ "print", LuaPrint},
|
||||||
|
{ "Print", LuaPrint},
|
||||||
{ NULL, NULL},
|
{ NULL, NULL},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
- page up and down should also scroll and leave you in exactly same scroll
|
- page up and down should also scroll and leave you in exactly same scroll
|
||||||
- I think the way sublime text and we display line highlights is confusing with multiple cursors (line highlight can be confused with selection)
|
- I think the way sublime text and we display line highlights is confusing with multiple cursors (line highlight can be confused with selection)
|
||||||
- ctrl + delete maybe should stop on new line but it keeps on going
|
- ctrl + delete maybe should stop on new line but it keeps on going, sublime is much more careful with deleting
|
||||||
|
|
||||||
- bug: Latin-1 is matched as column for some reason in ApplyRules!!
|
|
||||||
- mouse execute (control right click)
|
- mouse execute (control right click)
|
||||||
- alt right click what to do ? (toggle console?)
|
- alt right click what to do ? (toggle console?)
|
||||||
- experiment with using multiple cursors to select command and it's input
|
- experiment with using multiple cursors to select command and it's input
|
||||||
|
|||||||
Reference in New Issue
Block a user