From b4c37a8291b4a6c49b525287acd6288ddeb5b8e9 Mon Sep 17 00:00:00 2001 From: Matuush Date: Sun, 20 Apr 2025 12:06:13 +0200 Subject: [PATCH] Comment global variables --- main.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/main.cpp b/main.cpp index f3f2310..9ac2d22 100644 --- a/main.cpp +++ b/main.cpp @@ -23,12 +23,12 @@ count_type min(count_type a, count_type b) { return (a <= b) ? a : b; } count_type max(count_type a, count_type b) { return (a >= b) ? a : b; } // Global variables -treap file; -position cur = {0, 0}; -count_type file_offset = 0; -position clp; -treap selection; -string last_find, last_replace; +treap file; // file representation +position cur = {0, 0}; // cursor position +count_type file_offset = 0; // terminal file offset +position clp; // selection initial position +treap selection; // selection +string last_find, last_replace; // last find/replace inputs // Accessing the file string get_line(count_type r, bool substitute_tab = true) {