History

Consistency

malc committed 5 years ago

Commit bfa56ed1 parent 6dea5dd3 files · +14 −14Browse files

Unified · Split

3 files
  1. genconfstruct.sh +5 −5
  2. link.c +4 −4
  3. main.ml +5 −5
genconfstruct.sh+5−5
@@ -18,10 +18,10 @@ and columns = · 17 unmodified lines
18 | Cmulti of multicolumns18 | Cmulti of multicolumns
19 | Csplit of splitcolumns19 | Csplit of splitcolumns
20and mark =20and mark =
21 | Mark_page21 | MarkPage
22 | Mark_block22 | MarkBlock
23 | Mark_line23 | MarkLine
24 | Mark_word24 | MarkWord
25and multicolumns = (multicol * pagegeom)25and multicolumns = (multicol * pagegeom)
26and singlecolumn = pagegeom26and singlecolumn = pagegeom
27and splitcolumns = (columncount * pagegeom)27and splitcolumns = (columncount * pagegeom)
@@ -117,7 +117,7 @@ f pgscale 1. · 89 unmodified lines
117b wheelbypage false117b wheelbypage false
118s stcmd "{|echo SyncTex|}"118s stcmd "{|echo SyncTex|}"
119b riani false119b riani false
120g paxmark mark Mark_word120g paxmark mark MarkWord
121b leftscroll false121b leftscroll false
122s title Utils.E.s122s title Utils.E.s
123f lastvisit 0.0123f lastvisit 0.0
link.c+4−4
@@ -55,7 +55,7 @@ enum { FitWidth, FitProportional, FitPage }; · 54 unmodified lines
55enum { LDfirst, LDlast };55enum { LDfirst, LDlast };
56enum { LDfirstvisible, LDleft, LDright, LDdown, LDup };56enum { LDfirstvisible, LDleft, LDright, LDdown, LDup };
57enum { Uuri, Utext, Utextannot, Ufileannot, Unone };57enum { Uuri, Utext, Utextannot, Ufileannot, Unone };
58enum { Mark_page, Mark_block, Mark_line, Mark_word };58enum { MarkPage, MarkBlock, MarkLine, MarkWord };
59 59
60struct slice {60struct slice {
61 int h;61 int h;
@@ -2744,7 +2744,7 @@ ML (markunder (value ptr_v, value x_v, value y_v, value mark_v)) · 2682 unmodified lines
2744 2744
2745 ensuretext (page);2745 ensuretext (page);
2746 2746
2747 if (mark == Mark_page) {2747 if (mark == MarkPage) {
2748 page->fmark = page->text->first_block->u.t.first_line->first_char;2748 page->fmark = page->text->first_block->u.t.first_line->first_char;
2749 page->lmark = page->text->last_block->u.t.last_line->last_char;2749 page->lmark = page->text->last_block->u.t.last_line->last_char;
2750 ret_v = Val_bool (1);2750 ret_v = Val_bool (1);
@@ -2762,7 +2762,7 @@ ML (markunder (value ptr_v, value x_v, value y_v, value mark_v)) · 11 unmodified lines
2762 continue;2762 continue;
2763 }2763 }
2764 2764
2765 if (mark == Mark_block) {2765 if (mark == MarkBlock) {
2766 page->fmark = block->u.t.first_line->first_char;2766 page->fmark = block->u.t.first_line->first_char;
2767 page->lmark = block->u.t.last_line->last_char;2767 page->lmark = block->u.t.last_line->last_char;
2768 ret_v = Val_bool (1);2768 ret_v = Val_bool (1);
@@ -2776,7 +2776,7 @@ ML (markunder (value ptr_v, value x_v, value y_v, value mark_v)) · 7 unmodified lines
2776 continue;2776 continue;
2777 }2777 }
2778 2778
2779 if (mark == Mark_line) {2779 if (mark == MarkLine) {
2780 page->fmark = line->first_char;2780 page->fmark = line->first_char;
2781 page->lmark = line->last_char;2781 page->lmark = line->last_char;
2782 ret_v = Val_bool (1);2782 ret_v = Val_bool (1);
main.ml+5−5
@@ -143,7 +143,7 @@ let paxunder x y = · 142 unmodified lines
143 else None143 else None
144 in144 in
145 Glutils.postRedisplay "paxunder";145 Glutils.postRedisplay "paxunder";
146 if conf.paxmark = Mark_page146 if conf.paxmark = MarkPage
147 then147 then
148 List.iter (fun l ->148 List.iter (fun l ->
149 match getopaque l.pageno with149 match getopaque l.pageno with
@@ -4018,10 +4018,10 @@ let viewmulticlick clicks x y mask = · 3868 unmodified lines
4018 let g opaque l px py =4018 let g opaque l px py =
4019 let mark =4019 let mark =
4020 match clicks with4020 match clicks with
4021 | 2 -> Mark_word4021 | 2 -> MarkWord
4022 | 3 -> Mark_line4022 | 3 -> MarkLine
4023 | 4 -> Mark_block4023 | 4 -> MarkBlock
4024 | _ -> Mark_page4024 | _ -> MarkPage
4025 in4025 in
4026 if Ffi.markunder opaque px py mark4026 if Ffi.markunder opaque px py mark
4027 then (4027 then (

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t