-
Notifications
You must be signed in to change notification settings - Fork 6
Commit 8b98b7c
Fix indentation with multibyte characters
Instead of sometimes using virtcol() to get the screen position,
work with the file as single-byte characters, then adjust the final
indentation by the difference of col and virtcol.
There may be some outstanding edge cases.1 parent a0a4eb9 commit 8b98b7c
File tree
4 files changed
+17
-8
lines changed- clj
- dev-resources
- test/vim_clojure_static
- indent
4 files changed
+17
-8
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 | - | ||
9 | + | ||
10 | + | ||
11 | + | ||
12 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 | - | ||
12 | - | ||
13 | - | ||
14 | - | ||
15 | - | ||
16 | 11 |
| |
17 | 12 |
| |
18 | 13 |
| |
| |||
99 | 94 |
| |
100 | 95 |
| |
101 | 96 |
| |
102 | - | ||
97 | + | ||
103 | 98 |
| |
104 | 99 |
| |
105 | 100 |
| |
| |||
306 | 301 |
| |
307 | 302 |
| |
308 | 303 |
| |
309 | - | ||
304 | + | ||
310 | 305 |
| |
311 | 306 |
| |
312 | 307 |
| |
313 | 308 |
| |
314 | 309 |
| |
310 | + | ||
315 | 311 |
| |
316 | 312 |
| |
317 | 313 |
| |
|
0 commit comments