Comments (3)
I might be able to work around this by updating the focus to to a different view if the focus is on the view being closed but I've search the API docs and haven't been able to figure out how to programmatically change the view focus yet.
I'm an idiot as another piece of code in that same module does change the view focus. The function I was looking for was ui.goto_view
. If I prepend ui.goto_view(_VIEWS[#_VIEWS-1])
prior to my unsplit no more crashing. Therefore is the answer to maybe handle this within Lua and have unsplit
automatically move the focus if the item being removed is focused?
from textadept.
Thanks for the detailed report. It seems that calling unsplit on a non-focused view resulted in undefined behavior. This should be fixed via c659b31.
Regardless, if you want control over which view has focus after a split, it is wise to call ui.goto_view()
if you're going to call unsplit()
on something other than view
.
from textadept.
Actually, forget that last bit of my comment. You can always call ui.goto_view()
after the fact since Textadept hasn't crashed :)
from textadept.
Related Issues (20)
- Bug: subscript character error HOT 5
- Not print capital letters (Cyrillic alphabet) HOT 4
- Query/ Feature Request: Print or Export to PDF HOT 2
- Fossil repository is not recognized as a project HOT 1
- Snippets don't work/cannot open dialog box. HOT 2
- Menu (feature request) HOT 5
- Minimum version 11.0 on MacOS HOT 4
- As you type auto indent HOT 3
- https://invisible-mirror.net unreachable HOT 1
- textadept-gtk, stack smashing detected HOT 1
- `ctrl+cmd+???` keybinding oddness HOT 20
- Crash when selecting text HOT 5
- Keyboard shortcuts for adding a caret in Linux HOT 9
- SciTE vs. Textadept 12 keyboard event handling HOT 4
- Isolating the GTK part only along with fully offline build procedure (for version 12) HOT 7
- --session parameter ignored HOT 2
- Bottom slider/bar even on empty file (Linux) HOT 2
- Font quality HOT 6
- Windows/VS2022/GTK3 build? 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 textadept.