Skip to content

Commit 485160f

Browse files
AllyTallyInfoTeddy
andauthored
Apply suggestions from code review
Co-authored-by: Misa Elizabeth Kai <[email protected]>
1 parent 9cf2fa2 commit 485160f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

desktop_version/src/TextInput.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
#include "UtilityClass.h"
1212
#include "Vlogging.h"
1313

14-
namespace TextInput {
14+
namespace TextInput
15+
{
1516
bool taking_input;
1617
bool selecting;
1718
int flash_timer;
@@ -310,7 +311,7 @@ namespace TextInput {
310311
void move_cursor_up(void)
311312
{
312313
bool reset = process_selection(); // Only returns true if you don't hold shift
313-
if (reset && (cursor_pos.y > cursor_select_pos.y))
314+
if (reset && cursor_pos.y > cursor_select_pos.y)
314315
{
315316
cursor_pos.y = cursor_select_pos.y;
316317
}
@@ -329,7 +330,7 @@ namespace TextInput {
329330
void move_cursor_down(void)
330331
{
331332
bool reset = process_selection(); // Only returns true if you don't hold shift
332-
if (reset && (cursor_pos.y < cursor_select_pos.y))
333+
if (reset && cursor_pos.y < cursor_select_pos.y)
333334
{
334335
cursor_pos.y = cursor_select_pos.y;
335336
}

0 commit comments

Comments
 (0)