selection: use selection_start() to initialize word/row-based selection

This removes the selection_mark_word() and selection_mark_row()
functions. To start a word/row-based selection, use selection_start()
with SELECTION_SEMANTIC_{WORD,ROW}
This commit is contained in:
Daniel Eklöf 2021-01-02 23:00:54 +01:00
parent 3dd6b7e4ef
commit 3afc5a723e
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 104 additions and 107 deletions

View file

@ -223,7 +223,7 @@ search_update_selection(struct terminal *term,
assert(selection_row >= 0 &&
selection_row < term->grid->num_rows);
selection_start(term, start_col, selection_row,
SELECTION_NORMAL, SELECTION_SEMANTIC_NONE);
SELECTION_NORMAL, SELECTION_SEMANTIC_NONE, false);
}
/* Update selection endpoint */