MCPcopy Create free account
hub / github.com/Rezonality/zep / UpdateVisualSelection

Method UpdateVisualSelection

src/mode.cpp:1899–1917  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1897}
1898
1899void 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
1919bool ZepMode::HandleExCommand(std::string strCommand)
1920{

Callers

nothing calls this directly

Calls 3

GetLinePosMethod · 0.80
GetBufferCursorMethod · 0.80
SetSelectionMethod · 0.80

Tested by

no test coverage detected