diff -r 6d1986411733 -r 6b0a839f399e hedgewars/uChat.pas --- a/hedgewars/uChat.pas Sun Mar 01 16:38:18 2015 +0100 +++ b/hedgewars/uChat.pas Sun Mar 01 16:45:24 2015 +0100 @@ -824,8 +824,14 @@ if length(s) = 0 then SetLine(InputStr, '', true) else + begin SetLine(InputStr, '/team ', true) - // TODO: update InputStrL accordingly! + // update InputStrL and cursor accordingly + // this allows cursor-jumping over '/team ' as if it was a single char + InputStrL[6]:= 0; + cursorPos:= 6; + UpdateCursorCoords(); + end; end; procedure initModule;