|
From: | Mahyar Abbaspour |
Subject: | Re: [Nano-devel] [PATCH] Window resize handling |
Date: | Tue, 5 May 2015 11:25:04 +0430 |
Also, instead of duplicating the code for calculating last_line,
I would just move that calculation inside the while (TRUE),
adding a proper initialization of last_line = 0 in the for.
The recalculation for every keystroke is a bit of a waste,
but the thing is not time critical, and it's better than
code duplication.
[Prev in Thread] | Current Thread | [Next in Thread] |