elm_code: Always render N new lines (buffer).
authorAlastair Poole <netstar@gmail.com>
Mon, 10 Aug 2020 10:17:32 +0000 (11:17 +0100)
committerJongmin Lee <jm105.lee@samsung.com>
Mon, 10 Aug 2020 21:28:18 +0000 (06:28 +0900)
commit62dfaa39f87edd9c1429d120df38af4dad6acad2
tree7c4a50b4611957b75fa4666f62755b36e076a396
parent8a4aa4d4c79c177ef5a6de28fe4d069177fda68b
elm_code: Always render N new lines (buffer).

If we don't have a buffer here you CAN lose the race when scrolling.
As there is a check later in the flow, we can just use a padding
of 64 instead of checking the range. This ensures that scrolling is
smooth and content is always rendered throughout an aggressive
scroll.
src/lib/elementary/elm_code_widget.c