Sublime Forum

Bug: text cursor changes shape in ST 3 on Linux

#1

I noticed this with build 3059 on Ubuntu 12.04 and Linux Mint 13.10. The text cursor changes shape, usually growing taller, but sometimes also getting wider. The forum doesn’t let me attach a screenshot…

Is it a known issue?

0 Likes

#3

I am experiencing the same thing in RHEL6 with build 3059.

The cursor may extend higher or lower than usual, or both, and may be about 0.5em wide.

I can get a normal cursor unreliably by closing the document and re-opening it several times.
Often, the cursor is misshapen as soon as I open a document, but I have observed a normal cursor gaining size in one or more of the noted dimensions during a session. Presumably, every cursor would eventually end up being a double-height wide bar if I worked on a document for long enough without closing it.
Once the cursor has grown in a dimension, that dimension will not return to normal without closing the tab (but it may grow in another dimension).

Possibly relevant sytem information:

$ uname -a
Linux damason.csb 2.6.32-358.14.1.el6.x86_64 #1 SMP Mon Jun 17 15:54:20 EDT 2013 x86_64 x86_64 x86_64 GNU/Linux

$ lsb_release -a
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: RedHatEnterpriseWorkstation
Description: Red Hat Enterprise Linux Workstation release 6.4 (Santiago)
Release: 6.4
Codename: Santiago

$ gnome-about --gnome-version
Version: 2.28.2
Distributor: Red Hat, Inc
Build Date: 09/25/2012

0 Likes

#4

It seems likely that this would be related to the following change in version 3059:

“Added settings caret_extra_top, caret_extra_bottom and caret_extra_width to control the caret size”

What I’m seeing definitely seems to be extra top, bottom and/or width in the caret.

I suspect that that the values just aren’t being initialized properly so they’re starting with a random value (but it gets clamped between 0 and 10).
Adding the following to my user settings (Preferences -> Settings - User) appears to fix it for me.

“caret_extra_top”: 0,
“caret_extra_bottom”: 0,
“caret_extra_width”: 0

I guess the general fix would be to add these to the default settings for the distribution.

0 Likes

#5

This does sound like an issue related to the caret settings.

Bear in mind that it is also possible to change these settings on a per-syntax basis. I’m aware of the MarkdownEditing package forcing settings for Markdown and there may be others.

Alex

0 Likes