1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:47:34 +00:00

GTextEditor: Add very basic automatic indentation.

This is off by default, but enabled by TextEditor. It simply inserts the
same number of leading spaces as the previous line when hitting Enter. :^)
This commit is contained in:
Andreas Kling 2019-04-25 22:56:09 +02:00
parent 8a3d00ac02
commit 71770e000b
5 changed files with 38 additions and 2 deletions

View file

@ -61,6 +61,8 @@ public:
{
}
static String repeated(char, int count);
int to_int(bool& ok) const;
unsigned to_uint(bool& ok) const;