Skip to content

Commit

Permalink
use doc_mut! instead of current!
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Davis <[email protected]>
  • Loading branch information
diegostafa and the-mikedavis authored Mar 31, 2024
1 parent 99b0a42 commit 89fa957
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helix-term/src/ui/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1234,7 +1234,7 @@ impl EditorView {
if let Some((pos, view_id)) = pos_and_view(cxt.editor, row, column, true) {
cxt.editor.focus(view_id);

let doc = current!(cxt.editor).1;
let doc = doc_mut!(cxt.editor);
doc.set_selection(view_id, Selection::point(pos));

if modifiers == KeyModifiers::ALT {
Expand Down

0 comments on commit 89fa957

Please sign in to comment.