Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #608: Missing Cursor #621

Merged
merged 1 commit into from
Jan 29, 2021
Merged

Issue #608: Missing Cursor #621

merged 1 commit into from
Jan 29, 2021

Conversation

vkbo
Copy link
Owner

@vkbo vkbo commented Jan 29, 2021

This resolves #608 which describes an issue with opening a blank document and no cursor being visible when the editor has focus.

I did not manage to find out why this happens. Presumably, some action by novelWriter causes the cursor to not show. I added a simple hack that will add a line break and remove it again if the opened document is empty. This brings back the cursor. However, it doesn't work if the blank document is opened automatically when the application is launched. The latter is why I expect it is caused by a conflict with some other internal feature. Still, fixing it for when the user manually opens a blank document solves it in 99% of cases, and it's probably good enough.

If I figure out exactly what is causing this, I'll make a better fix.

@vkbo vkbo added this to the Release 1.1 RC 1 milestone Jan 29, 2021
@vkbo vkbo linked an issue Jan 29, 2021 that may be closed by this pull request
@vkbo vkbo merged commit 91701b4 into release Jan 29, 2021
@vkbo vkbo deleted the issue608_cursor_in_blank_doc branch January 29, 2021 22:09
@vkbo vkbo added this to Done in Release 1.1 Jan 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Release 1.1
  
Done
Development

Successfully merging this pull request may close these issues.

Blank Document Does Not Have Cursor
1 participant