Merge pull request #1148 from keymanapp/developer-web-editor-show-char-preview-range

[Developer] Show selected character range in character preview window, not just first character
This commit is contained in:
Marc Durdin 2018-08-30 11:00:13 +10:00 • committed by GitHub
commit ffd4b28372
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -888,12 +888,13 @@ var
token, prevtoken: WideString;
FHelpTopic, FPrevHelpTopic: WideString;
begin
n := command.IndexOf(',');
if n < 0 then
token := StrToken(command, ',');
if token = 'null' then
col := 0
else if not TryStrToInt(token, col) then
Exit;
if not TryStrToInt(command.Substring(0, n), col) then
Exit;
line := command.Substring(n+1);
line := command;
x := col+1;