From 57d766a268ec7e2aa3af8f15a45dd39696702da5 Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Sun, 20 Jan 2019 19:25:49 +0100 Subject: [PATCH] fix typo in code comments --- src/u_processes.pas | 20 ++++++++++---------- src/u_synmemo.pas | 4 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/u_processes.pas b/src/u_processes.pas index 6a805d8e..c85e8d52 100644 --- a/src/u_processes.pas +++ b/src/u_processes.pas @@ -14,20 +14,20 @@ type This class solves several issues encountered when using TProcess and TAsyncProcess: - - OnTerminate event is never called under Linux. - Here a timer perdiodically check the process and call the event accordingly. - - TAsyncProcess.OnReadData event is not usable to read full output lines. - Here the output is accumulated in a TMemoryStream which allows to keep data + - "OnTerminate" event is never called under Linux. + FIX: a timer perdiodically check the process and call the event accordingly. + - "OnReadData" event is not usable to read full output lines. + FIX: the output is accumulated in a TMemoryStream which allows to keep data at the left of an unterminated line when a buffer is available. - - When StdErr is redirect to Output, both streams can be blended. Here the - option is deactivated on execution, a falg is set, and the error stream - is always added to after the output. + - When StdErr is redirect to "Output", both streams can be blended. + FIX: the option is deactivated on execution, a flag is set, and the error + stream is always appended after the output. - The member Output is not usable anymore. Instead: + The member "Output" is not usable anymore. Instead: - - getFullLines() can be used in OnReadData or after the execution to fill + - "getFullLines()" can be used in "OnReadData" or after the execution to fill a string list. - - OutputStack can be used to read the raw output. It allows to seek, which + - "StdoutEx" can be used to read the raw output. It allows to seek, which overcomes another limitation of the basic process classes. } TDexedProcess = class(TASyncProcess) diff --git a/src/u_synmemo.pas b/src/u_synmemo.pas index fc085c36..1b22196e 100644 --- a/src/u_synmemo.pas +++ b/src/u_synmemo.pas @@ -2374,7 +2374,7 @@ begin (tk0^.kind in [matchingTok, ltkComment]) then exit; end - // at the EOF an illegal tok is lokely something that has to be closed so + // at the EOF an illegal tok is likely something that has to be closed so // dont auto insert the pair. else if (tk0^.offset+1 <= p) and (tk0^.kind = ltkIllegal) then exit; @@ -3601,7 +3601,7 @@ begin c := Key[1]; // scan source before insertion if pair auto closing is allowed otherwise the - // tokens following the cursor are wring after the "inherited" call. + // tokens following the cursor are wrong after the "inherited" call. case c of #39: if autoCloseSingleQuote in fAutoClosedPairs then reLex();