| 1897 | } |
| 1898 | |
| 1899 | void ZepMode::UpdateVisualSelection() |
| 1900 | { |
| 1901 | // Visual mode update - after a command |
| 1902 | if (m_currentMode == EditorMode::Visual) |
| 1903 | { |
| 1904 | // Update the visual range |
| 1905 | if (m_lineWise) |
| 1906 | { |
| 1907 | m_visualEnd = GetCurrentWindow()->GetBuffer().GetLinePos(GetCurrentWindow()->GetBufferCursor(), LineLocation::LineCRBegin); |
| 1908 | } |
| 1909 | else |
| 1910 | { |
| 1911 | m_visualEnd = GetCurrentWindow()->GetBufferCursor(); |
| 1912 | } |
| 1913 | |
| 1914 | auto range = GetInclusiveVisualRange(); |
| 1915 | GetCurrentWindow()->GetBuffer().SetSelection(range); |
| 1916 | } |
| 1917 | } |
| 1918 | |
| 1919 | bool ZepMode::HandleExCommand(std::string strCommand) |
| 1920 | { |
nothing calls this directly
no test coverage detected