mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-07 19:19:12 +00:00
Don't use test-only method; add ctrl-j binding
Co-Authored-By: Conrad Irwin <conrad.irwin@gmail.com>
This commit is contained in:
parent
cf38264eda
commit
cde8d7d747
2 changed files with 2 additions and 1 deletions
|
@ -411,6 +411,7 @@
|
|||
"ctrl-shift-k": "editor::DeleteLine",
|
||||
"cmd-shift-d": "editor::DuplicateLine",
|
||||
"cmd-shift-l": "editor::SplitSelectionIntoLines",
|
||||
"ctrl-j": "editor::JoinLines",
|
||||
"ctrl-cmd-up": "editor::MoveLineUp",
|
||||
"ctrl-cmd-down": "editor::MoveLineDown",
|
||||
"ctrl-alt-backspace": "editor::DeleteToPreviousSubwordStart",
|
||||
|
|
|
@ -3956,7 +3956,7 @@ impl Editor {
|
|||
|
||||
pub fn join_lines(&mut self, _: &JoinLines, cx: &mut ViewContext<Self>) {
|
||||
let mut row_ranges = Vec::<Range<u32>>::new();
|
||||
for selection in self.selections.ranges::<Point>(cx) {
|
||||
for selection in self.selections.all::<Point>(cx) {
|
||||
let start = selection.start.row;
|
||||
let end = if selection.start.row == selection.end.row {
|
||||
selection.start.row + 1
|
||||
|
|
Loading…
Reference in a new issue