import { GoAction } from "../action/GoAction" ; import { Position } from "../VimStyle" ; import { AbstractMotion } from "./AbstractMotion" ; /**
 * $ c$
 */ export class LastCharacterInLineMotion extends AbstractMotion { public CalculateEnd ( editor , vim , start ) { let end = new Position ( ) ; end . Line = start . Line ; end . Char = Number . MAX_VALUE ; return editor . UpdateValidPosition ( end ) ; } } /**
 * $
 */ export function GotoLastCharacterInLine ( num ) { let a = new GoAction ( ) ; a . Motion = new LastCharacterInLineMotion ( ) ; return a ; } /**
 * c$
 */ export function AddLastCharacterInLineMotion ( num , action ) { let a = < IRequireMotionAction > action ; a . Motion = new LastCharacterInLineMotion ( ) ; }