Comment global variables

This commit is contained in:
Matúš Púll 2025-04-20 12:06:13 +02:00
parent 6063b65fda
commit b4c37a8291

View file

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