File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -3027,24 +3027,32 @@ void CMUSHView::did_jump (void)
3027
3027
CMUSHclientDoc* pDoc = GetDocument ();
3028
3028
ASSERT_VALID (pDoc);
3029
3029
3030
+ bool selection_changed = false ;
3031
+
3030
3032
m_selstart_line -= JUMP_SIZE;
3031
3033
m_selend_line -= JUMP_SIZE;
3032
3034
m_pin_line -= JUMP_SIZE;
3033
3035
3034
3036
if (m_selstart_line < 0 )
3035
3037
{
3038
+ if ((m_selstart_line != m_selend_line) || (m_selstart_col != m_selend_col))
3039
+ {
3040
+ selection_changed = true ;
3041
+ }
3036
3042
m_selstart_line = 0 ;
3037
3043
m_selstart_col = 0 ;
3038
- SelectionChanged ();
3039
3044
}
3040
3045
3041
3046
if (m_selend_line < 0 )
3042
3047
{
3043
3048
m_selend_line = 0 ;
3044
3049
m_selend_col = 0 ;
3045
- SelectionChanged ();
3046
3050
}
3047
3051
3052
+ if (selection_changed) {
3053
+ SelectionChanged ();
3054
+ }
3055
+
3048
3056
if (m_pin_line < 0 )
3049
3057
{
3050
3058
m_pin_line = 0 ;
You can’t perform that action at this time.
0 commit comments