Commit 0badc89
Create more precise highlight brackets
This commit addresses too small or wrongly placed highlight brackets
especisally on windows. Because of rounding errors the bracket selection
highlight is often inconsistent. Making use of residual values plus
simplifying the logic provides better rectangle values and the highlight
is more consistent across all zooms.1 parent 740f6fc commit 0badc89
1 file changed
Lines changed: 5 additions & 7 deletions
File tree
- bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/source
Lines changed: 5 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
260 | | - | |
| 260 | + | |
261 | 261 | | |
262 | | - | |
263 | | - | |
264 | 262 | | |
265 | | - | |
266 | | - | |
267 | | - | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
268 | 266 | | |
269 | 267 | | |
270 | | - | |
| 268 | + | |
271 | 269 | | |
272 | 270 | | |
273 | 271 | | |
| |||
0 commit comments