Comments (1)
UIのサイズを変えると、新たにでる行の行番号のエリアが、アップデートされずに穴があきます。
再現方法:
・lemをncurses-modeで起動して、行が多くあるファイルを読み込みます。
・UIのwindowsを大きくしたときに、行番号がどうなるかを観察してください。
・行番号は、次のキーボードイベント(カーソル移動等)が起こるまで生成されません。
問題:
・行番号のエリアが、リサイズ中、またリサイズ後に、再描画されていません。
・行番号のエリアが描画されず、UIがスクリーンをクリアすることに依存しています。
・このことが、リサイズの流れを複雑にしています。つまり、下位レベルのbitmap allocatorが、穴があいてしまわないように、スクリーンをクリアする必要が生じています。その結果、その処理をするために、redrawに依存してしまっています。
解決策の提案:
Redrawは行番号を対処?(address)するべきであり、そうすることで、穴はあきません。
まずさしあたり、clear-to-eolは0から始めるべきです。
根拠(proof: 主張を裏付けるデータ):
ログによると、テキストはlemに更新されていますが、行番号はlemによって更新されていません。
ログの一部を抜粋します。
xcb:interface-print (0 23) | 24 | attr:#<ATTRIBUTE {10047AC673}>
xcb:interface-clear-eol view (4 23)
xcb:interface-print (4 23) |A working 'toy' implementation provides a simple demo of the wrapper.| attr:NIL
xcb:interface-clear-eol view (0 23)
xcb:interface-clear-eol view (0 24)
xcb:interface-clear-eol view (4 25) <---------- HERE!
xcb:interface-print (4 25) |```| attr:NIL
座標点(0 23)で、行番号は"24"と印字されて、その後、座標点(4 23)でtextが伴います。
座標点(0 24)は、新しく出されるエリアの初めの行ですが、EOLにclearされます。
After that, we go straight to (4 25), never addressing the line number area.
その後、座標点(4 23)にいきますが、その行番号のエリアを対処(adreess)しません。
このパターンが続きます。
この流れは、lemが行番号のエリアを更新していないことを示します。
from lem.
Related Issues (20)
- Docker container issues HOT 2
- Performance problem (when printing a 7MB API endpoint on the REPL) HOT 2
- Eval keybindings not working on ncurses version (macOS Sonoma, M1) HOT 4
- quri on lem not loading during quickload HOT 12
- What are the command line options for the Lem editor? HOT 1
- install script fails in Ubuntu 22 HOT 4
- Lem hangs if we edit and recompile `uiop:define-package :lem-core`
- Lem hangs when using negative universal argument through M--? HOT 2
- Write the GUI in CL with McCLIM HOT 3
- How to use a custom Common Lisp implementation for Lisp code? HOT 3
- Building Lem with both SDL2 and ncurses support simultaneously HOT 3
- Top and bottom borders of SDL version (2.1.0) not visible on Windows 11
- Can't build with SDL2 on Arch Linux on WSL HOT 4
- Severe rendering performance issues with SDL2 in WSL
- cannot install on openSUSE `Package "iterate" not found` HOT 1
- Error Building Lem on MacOS Using Roswell HOT 9
- Lem on SDL2 - SBCL dropping to LDB when loading a system via ASDF. HOT 5
- Thai string is not displayed properly HOT 2
- Rounding error in mouse coordinates on SDL2 filer interface HOT 1
- Still can't build on Linux: "The archive file "cl-unicode-20210228-git.tgz" for release "cl-unicode" is missing" HOT 2
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 lem.