~strahinja/poe

ref: v1.01 poe/tabs.draft -rw-r--r-- 2.2 KiB
7e7b946cСтрахиња Радић Fix: properly update first shown column when C-R/C-T in lines longer than edit box width 1 year, 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
          |                              |                                      
          |012345678901234567890123456789|123456789                                  
          |012345670123456701234567012345|701234567                                  
  ds = 0  |The     quick   brown fox     | jumps.                                    
  i = 19  |                         |----|->                                         
  *ps = '\t'                                                                    

          |                              |                                      
         0|234567890123456789012345678901|3456789                                  
         0|234567012345670123456701234567|1234567                                  
         T|e     quick   brown fox       |umps.                                    
          |                              |->                                         
  ds = 2   ds = first shown display column                                       
  i = 20                                                                        
  *ps = 'j'                                                                     
                                                                                
          |                              |                                      
      0123|567890123456789012345678901234|6789                                  
      0123|567012345670123456701234567012|4567                                  
      The |   quick   brown fox       jum|s.                                    
          |                              |                                      
  ds = 5  |                              |                                      
  i = 23                                                                        
  *ps = 'p'