comparison src/ui.c @ 19738:0208534b8a84 v8.2.0425

patch 8.2.0425: code for modeless selection not sufficiently tested Commit: https://github.com/vim/vim/commit/515545e11f523d14343b1e588dc0b9bd3d362bc2 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 22 14:08:59 2020 +0100 patch 8.2.0425: code for modeless selection not sufficiently tested Problem: Code for modeless selection not sufficiently tested. Solution: Add tests. Move mouse code functionality to a common script file. (Yegappan Lakshmanan, closes #5821)
author Bram Moolenaar <Bram@vim.org>
date Sun, 22 Mar 2020 14:15:04 +0100
parents fe8ba2f82f59
children aa674de6d813
comparison
equal deleted inserted replaced
19737:5591829276ff 19738:0208534b8a84
1044 else if (is_click) 1044 else if (is_click)
1045 clip_start_selection(mouse_col, mouse_row, repeat); 1045 clip_start_selection(mouse_col, mouse_row, repeat);
1046 else if (is_drag) 1046 else if (is_drag)
1047 { 1047 {
1048 // Don't try extending a selection if there isn't one. Happens when 1048 // Don't try extending a selection if there isn't one. Happens when
1049 // button-down is in the cmdline and them moving mouse upwards. 1049 // button-down is in the cmdline and then moving mouse upwards.
1050 if (clip_star.state != SELECT_CLEARED) 1050 if (clip_star.state != SELECT_CLEARED)
1051 clip_process_selection(button, mouse_col, mouse_row, repeat); 1051 clip_process_selection(button, mouse_col, mouse_row, repeat);
1052 } 1052 }
1053 else // release 1053 else // release
1054 clip_process_selection(MOUSE_RELEASE, mouse_col, mouse_row, FALSE); 1054 clip_process_selection(MOUSE_RELEASE, mouse_col, mouse_row, FALSE);