public static FindPreviousInLine ( string searchText, int offset, char c ) : int | ||
searchText | string | |
offset | int | |
c | char | |
리턴 | int |
protected override void Run() { for (int i = 0; i < Count; i++) { var offset = StringUtils.FindPreviousInLine(Editor.Text, Editor.Caret.Offset, Argument); if (offset <= 0) { return; } Editor.Caret.Offset = offset; } }
protected override void Run() { var originalCaretPosition = Editor.Caret.Offset; for (int i = 0; i < Count; i++) { var offset = StringUtils.FindPreviousInLine(Editor.Text, Editor.Caret.Offset, Argument); if (offset <= 0) { return; } Editor.Caret.Offset = offset; Editor.SetSelection(offset, originalCaretPosition); } Editor.Caret.Offset += findResultShift; }