temporary hack: use selection as a cursor

This commit is contained in:
Daniel Micay 2012-07-09 21:13:27 -04:00
parent 02d7e42037
commit b9ea216495
1 changed files with 3 additions and 0 deletions

View File

@ -81,6 +81,9 @@ void window_title_cb(VteTerminal *vte, GtkWindow *window) {
static void update_selection(VteTerminal *vte, const select_info *select) {
if (select->mode == SELECT_ON) {
// a hack to use the selection as a cursor until a real one is implemented
vte_terminal_select_text(vte, select->cursor_col, select->cursor_row,
select->cursor_col, select->cursor_row, 0, 0);
return; // not in visual mode
}