| 941 | |
| 942 | |
| 943 | void ByteView::moveToStartOfLine(bool selecting) |
| 944 | { |
| 945 | for (auto& i : m_lines) |
| 946 | { |
| 947 | if ((m_cursorAddr >= i.address) && (m_cursorAddr < (i.address + i.length))) |
| 948 | { |
| 949 | m_cursorAddr = i.address; |
| 950 | break; |
| 951 | } |
| 952 | } |
| 953 | if (!selecting) |
| 954 | selectNone(); |
| 955 | repositionCaret(); |
| 956 | if (m_selectionVisible || selecting) |
| 957 | viewport()->update(); |
| 958 | } |
| 959 | |
| 960 | |
| 961 | void ByteView::moveToEndOfLine(bool selecting) |