reimplement vi's 'l' motion so that we only skip a newline when it is preceded by a non-newline character
This commit is contained in:
@@ -137,8 +137,6 @@ struct
|
||||
acc
|
||||
else
|
||||
let
|
||||
val posX = #startX env
|
||||
val posY = posY + TC.ySpace
|
||||
val acc =
|
||||
if absIdx = cursorIdx then
|
||||
Utils.makeCursor (posX, posY, env) :: acc
|
||||
@@ -151,8 +149,8 @@ struct
|
||||
, stl
|
||||
, line
|
||||
, ltl
|
||||
, posX
|
||||
, posY
|
||||
, #startX env
|
||||
, posY + TC.ySpace
|
||||
, 0
|
||||
, lineNumber + 1
|
||||
, absIdx + 1
|
||||
|
||||
@@ -234,8 +234,6 @@ struct
|
||||
acc
|
||||
else
|
||||
let
|
||||
val posX = #startX env
|
||||
val posY = posY + TC.ySpace
|
||||
val acc =
|
||||
if absIdx = cursorIdx then
|
||||
Utils.makeCursor (posX, posY, env) :: acc
|
||||
@@ -248,8 +246,8 @@ struct
|
||||
, stl
|
||||
, line
|
||||
, ltl
|
||||
, posX
|
||||
, posY
|
||||
, #startX env
|
||||
, posY + TC.ySpace
|
||||
, 0
|
||||
, lineNumber + 1
|
||||
, absIdx + 1
|
||||
|
||||
Reference in New Issue
Block a user