<commit_before>export class MoveAction implements IAction {

    private motion: IMotion;

    constructor() {
    }

    public SetMotion(motion: IMotion) {
        this.motion = motion;
    }

    public Execute(editor: IEditor, vim: IVimStyle) {
        var from = editor.GetCurrentPosition();
        var to = this.motion.CalculateEnd(editor, from);
        if (to == null) {
            // cancel
            return;
        }
        editor.SetPosition(editor.UpdateValidPosition(to, true));
    }
}<commit_msg>if not move, do nothing<commit_after>export class MoveAction implements IAction {

    private motion: IMotion;

    constructor() {
    }

    public SetMotion(motion: IMotion) {
        this.motion = motion;
    }

    public Execute(editor: IEditor, vim: IVimStyle) {
        var from = editor.GetCurrentPosition();
        var to = this.motion.CalculateEnd(editor, from);
        if (to == null) {
            // cancel
            return;
        }
        if (from.char == to.char && from.line == to.line) {
            // not move
            return;
        }
        editor.SetPosition(editor.UpdateValidPosition(to, true));
    }
}
{'fraction_non_alphanumeric': 0.11053540587219343, 'fraction_numerical': 0.0, 'mean_word_length': 2.0261096605744124, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7116320', 'n_tokens_mistral': 343, 'n_tokens_neox': 323, 'n_words': 78}