Comments (4)
Frame is scary.
It's not too hard to get Frame to panic so I'll work on making that happen less.
- more unit tests for Frame (which will almost certainly drive some corrections)
- rationalizing
Insert
- logging that shows why Frame's gotten sad. In particular, how we ended up getting to this:
panic: frame.Insert pt1 too far
from edwood.
C libframe
isn't particularly robust either. And Edwood's Frame
is all of those issues plus whatever translation errors we've added.
from edwood.
Change cd69e43 clamps the linewraps to the frame.
It looks like much of the instability is caused by pt1.Y values coming back out of bounds from the line wrap, which just blindly adds font height to get the next line. But that spills in many cases, and boom.
Clamping them has dramatically increased stability.
from edwood.
There's a larger problem with frame that I intend to fix: it assumes in a few places that the frame's rect.Max.Y % FontHeight == 0
from edwood.
Related Issues (20)
- new tarball in releases HOT 2
- Broken frame insertion since #436 HOT 2
- Crash when attempting to snarf text on Windows 10 HOT 4
- ReadRuneAt coding error
- how do I configure plumb rule on window system HOT 6
- Undo isn't grouping sets of typed characters together. HOT 1
- MacOS IME integration HOT 1
- Make CrLf invisible HOT 7
- Column widths adjust strangely on window resize HOT 2
- Repeatable crash HOT 3
- plan9port support HOT 1
- Occasional crash HOT 1
- Event file missing chorded messages. HOT 4
- fatal error in Buffer.undone reading inserted contents: EOF HOT 4
- Windows filename handling is utterly broken. HOT 5
- fix the CI waiting HOT 1
- Button 2 output to +Errors selects the text of the whole +Errors windows HOT 1
- Windows build doesn't draw into window? HOT 6
- Event file writes sometimes have Location in Arg HOT 2
- Cursor disappeared, clicks still delivered HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from edwood.