[Lazarus] Issue 16987: Source Editor: Ctrl+A moves cursor to the end of file

Alexander Klenin klenin at gmail.com
Thu Jul 22 15:29:30 CEST 2010


On Wed, Jul 21, 2010 at 8:20 PM, Dave Coventry <dgcoventry at gmail.com> wrote:
> I couldn't really say, to be honest.
>
> But that piece of code was working a year or so ago...

I'm not sure.
As far as I know "~" is actually shell specific symbol.

i.e. try to compile the following code:

begin
  if ParamCount>0 then writeln(ParamStr(1))
end.

and launch the program from terminal:  "./test ~" (no quotes)
instead of "~" you'll your home path. The "~" is handled by the shell
(as an environment variable) and converted to the correct full-path
before passing it to the application.

If you try the same command line on Window, you'll get "~" printed.
Because window's shells (except for cygwin, mingwin) are not aware of
unix shells conventions home-char "~".

I guess RTL/FCL/LCL is working cross-platform way and doesn't treat
"~" in any special way, so the same code would work identical on any
system.

thanks,
dmitry




More information about the Lazarus mailing list