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) {