[mv3] Fix gutter click on last line

This commit is contained in:
Raymond Hill 2025-07-28 09:18:15 -04:00
parent 7d9317bb17
commit a986b45433
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -508,7 +508,7 @@ class Editor {
}
}
view.dispatch({
selection: { anchor: from, head: to+1 }
selection: { anchor: from, head: Math.min(to+1, doc.length) }
});
view.focus();
return true;