Skip to content

Commit

Permalink
Reset FClipboardHasNull marker before pasting text which was copied o…
Browse files Browse the repository at this point in the history
…utside the application. Closes #1942
  • Loading branch information
ansgarbecker committed Apr 17, 2024
1 parent 93bf677 commit 8359bf5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/main.pas
Expand Up @@ -10532,6 +10532,7 @@ procedure TMainForm.AnyGridNewText(Sender: TBaseVirtualTree; Node: PVirtualNode;
end else
NewText := NewText;
end;
FClipboardHasNull := FClipboardHasNull and (Clipboard.TryAsText = '');
IsNull := FGridPasting and FClipboardHasNull;
Results.SetCol(ResultCol, NewText, IsNull, FGridEditFunctionMode);
except
Expand Down

0 comments on commit 8359bf5

Please sign in to comment.