Comment global variables
This commit is contained in:
parent
6063b65fda
commit
b4c37a8291
1 changed files with 6 additions and 6 deletions
12
main.cpp
12
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; }
|
count_type max(count_type a, count_type b) { return (a >= b) ? a : b; }
|
||||||
|
|
||||||
// Global variables
|
// Global variables
|
||||||
treap file;
|
treap file; // file representation
|
||||||
position cur = {0, 0};
|
position cur = {0, 0}; // cursor position
|
||||||
count_type file_offset = 0;
|
count_type file_offset = 0; // terminal file offset
|
||||||
position clp;
|
position clp; // selection initial position
|
||||||
treap selection;
|
treap selection; // selection
|
||||||
string last_find, last_replace;
|
string last_find, last_replace; // last find/replace inputs
|
||||||
|
|
||||||
// Accessing the file
|
// Accessing the file
|
||||||
string get_line(count_type r, bool substitute_tab = true) {
|
string get_line(count_type r, bool substitute_tab = true) {
|
||||||
|
|
Loading…
Reference in a new issue