Searched refs:CursorLocation (Results 1 – 2 of 2) sorted by relevance
363 int Editline::GetLineIndexForLocation(CursorLocation location, int cursor_row) { in GetLineIndexForLocation()365 if (location == CursorLocation::EditingPrompt || in GetLineIndexForLocation()366 location == CursorLocation::BlockEnd || in GetLineIndexForLocation()367 location == CursorLocation::EditingCursor) { in GetLineIndexForLocation()371 if (location == CursorLocation::EditingCursor) { in GetLineIndexForLocation()373 } else if (location == CursorLocation::BlockEnd) { in GetLineIndexForLocation()384 void Editline::MoveCursor(CursorLocation from, CursorLocation to) { in MoveCursor()401 if (to == CursorLocation::EditingCursor) { in MoveCursor()404 } else if (to == CursorLocation::BlockEnd && !m_input_lines.empty()) { in MoveCursor()507 MoveCursor(CursorLocation::EditingCursor, CursorLocation::BlockStart); in RecallHistory()[all …]
125 enum class CursorLocation { enum271 int GetLineIndexForLocation(CursorLocation location, int cursor_row);275 void MoveCursor(CursorLocation from, CursorLocation to);