add a function to remove line breaks: the equivalent of Vim's 'J' command.

This commit is contained in:
2025-09-06 04:39:53 +01:00
parent 6ab3e592ad
commit 42bd641be4
3 changed files with 43 additions and 2 deletions

View File

@@ -86,6 +86,7 @@ struct
else NormalMove.moveToLine (app, count - 1)
| #"%" => NormalMove.moveToMatchingPair app
| #"x" => NormalDelete.removeChr (app, count, time)
| #"J" => NormalDelete.removeLineBreaks (app, count, time)
| #"/" => switchToNormalSearchMode app
(* multi-char commands which can be appended *)
| #"t" => appendChr (app, chr, str)