remove a couple of unneded functions
This commit is contained in:
@@ -805,12 +805,8 @@ struct
|
|||||||
| #"W" => deleteByDfa (app, count, Cursor.nextWORD)
|
| #"W" => deleteByDfa (app, count, Cursor.nextWORD)
|
||||||
| #"b" => deleteByDfa (app, count, Cursor.prevWord)
|
| #"b" => deleteByDfa (app, count, Cursor.prevWord)
|
||||||
| #"B" => deleteByDfa (app, count, Cursor.prevWORD)
|
| #"B" => deleteByDfa (app, count, Cursor.prevWORD)
|
||||||
|
| #"e" => deleteByDfa (app, count, Cursor.endOfWord)
|
||||||
(* todo: fix as 'plusOne' needs reimplementing
|
| #"E" => deleteByDfa (app, count, Cursor.endOfWORD)
|
||||||
| #"e" => deleteByDfa (app, count, Cursor.endOfWordPlusOne)
|
|
||||||
| #"E" => deleteByDfa (app, count, Cursor.endOfWORDPlusOne)
|
|
||||||
*)
|
|
||||||
|
|
||||||
| #"0" => delete (app, 1, Cursor.vi0)
|
| #"0" => delete (app, 1, Cursor.vi0)
|
||||||
| #"$" => deleteToEndOfLine app
|
| #"$" => deleteToEndOfLine app
|
||||||
| #"^" => deleteToFirstNonSpaceChr app
|
| #"^" => deleteToFirstNonSpaceChr app
|
||||||
|
|||||||
@@ -733,17 +733,6 @@ struct
|
|||||||
(* equivalent of vi's `E` command *)
|
(* equivalent of vi's `E` command *)
|
||||||
val endOfWORD = ViWORDDfa.endOfCurrentWORD
|
val endOfWORD = ViWORDDfa.endOfCurrentWORD
|
||||||
|
|
||||||
(* vi's 'e' command takes user last char in word
|
|
||||||
* but 'de' deletes up to and including last char of word
|
|
||||||
* So we need to increment by one for deletion. *)
|
|
||||||
fun endOfWordPlusOne (lineGap, cursorIdx) =
|
|
||||||
(* todo: fix *)
|
|
||||||
endOfWord (lineGap, cursorIdx, 1) + 1
|
|
||||||
|
|
||||||
fun endOfWORDPlusOne (lineGap, cursorIdx) =
|
|
||||||
(* todo: fix *)
|
|
||||||
endOfWORD (lineGap, cursorIdx, 1) + 1
|
|
||||||
|
|
||||||
fun helpFirstNonSpaceChr (strPos, str, absIdx, stl, ltl) =
|
fun helpFirstNonSpaceChr (strPos, str, absIdx, stl, ltl) =
|
||||||
if strPos = String.size str then
|
if strPos = String.size str then
|
||||||
case (stl, ltl) of
|
case (stl, ltl) of
|
||||||
|
|||||||
Reference in New Issue
Block a user