public void MarkLine() { AssertMotion("'a", Motion.NewMarkLine(LocalMark.OfChar('a').Value)); AssertMotion("'b", Motion.NewMarkLine(LocalMark.OfChar('b').Value)); }
private bool HasLocalMark(LocalMark localMark) { return(_vimBuffer.VimTextBuffer.GetLocalMark(localMark).IsSome()); }
public void Mark() { AssertMotion("`a", Motion.NewMark(LocalMark.OfChar('a').Value)); AssertMotion("`b", Motion.NewMark(LocalMark.OfChar('b').Value)); }
private bool HasLocalMark(LocalMark localMark) { return _vimBuffer.VimTextBuffer.GetLocalMark(localMark).IsSome(); }
public void RemoveLocalMark_Found() { Create("dog"); _vimTextBuffer.SetLocalMark(LocalMark.NewLetter(Letter.A), 0, 0); Assert.True(_vimTextBuffer.RemoveLocalMark(LocalMark.NewLetter(Letter.A))); }
public void RemoveLocalMark_NotFound() { Create("dog"); Assert.False(_vimTextBuffer.RemoveLocalMark(LocalMark.NewLetter(Letter.A))); }
private bool HasLocalMark(Letter letter) { return(HasLocalMark(LocalMark.NewLetter(letter))); }