We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec85be5 commit eaf0a95Copy full SHA for eaf0a95
1 file changed
cosu.lua
@@ -1992,7 +1992,7 @@ function input.insert.cursorBackspace(bJump)
1992
if not bJump and sLine:sub(tCursor.x-cosuConf.nTabSpace, tCursor.x-1) == (' '):rep(cosuConf.nTabSpace) then
1993
tContent[tCursor.y] = sLine:sub(1, tCursor.x - cosuConf.nTabSpace - 1) .. sLine:sub(tCursor.x)
1994
for i=1, cosuConf.nTabSpace do input.insert.cursorHorizontal("left") end
1995
- elseif tCursor.x > 1 then
+ elseif tCursor.x >= 1 then
1996
local removes = bJump and computeJump(tContent[tCursor.y], "left") or 1
1997
tContent[tCursor.y] = sLine:sub(1, tCursor.x - 1 - removes) .. sLine:sub(tCursor.x)
1998
for i=1, removes do input.insert.cursorHorizontal("left") end
0 commit comments