anchor.diff: -unit KM_Controls;
  +﻿unit KM_Controls;
   {$I KaM_Remake.inc}
   interface
   uses
  
positive.code:   if CursorPos = fSelectionEnd then
      CursorPos := CursorPos - (fSelectionEnd-fSelectionStart);
    ResetSelection;
  end;
  
  
  
negative.code: procedure TKMSelectableEdit.Changed;
  begin
    // OnChange should be called here, since we changed the input and don't want to wait until KeyUp event
    if Assigned(OnChange) then
      OnChange(Self);
  end;
  
  
  