all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Fixing cursor height when setting line-spacing
@ 2023-08-05  5:44 Karan Ahlawat
  2023-08-05  7:01 ` Eli Zaretskii
  2023-08-05 10:41 ` Yuri Khan
  0 siblings, 2 replies; 10+ messages in thread
From: Karan Ahlawat @ 2023-08-05  5:44 UTC (permalink / raw)
  To: help-gnu-emacs

Hi all,

I'll get straight to the point.

I set the line-height variable to be a positive integer (16). My 
cursor-type is set to t. Now, whenever I move the cursor to the end of a 
line, the height of the cursor is equal to the entire line height. But 
anywhere else on the line, it's equal to the height of the character 
under the cursor.

I searched the mailing lists for some similar issue, and found one mail 
chain where it is described that since the EOL has no displayable glyph, 
the cursor height is set equal to the line height.

I'd like this to always be the case, i.e, the cursor height to always be 
equal to the line height, EOL or not. This is a personal preference and 
so I don't think it is a bug, I just think it looks good in VSCode and 
other editors.

I tried using the HBAR and BAR cursor-type, but whenever they are on a 
character, the character is hidden underneath them, whereas in the 
default cursor-type, the character's foreground color is switched 
appropriately.

This is my first time on a mailing list, so if I missed etiquette, 
kindly let me know.

Cheers,

Karan




^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-08-05 11:52 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-05  5:44 Fixing cursor height when setting line-spacing Karan Ahlawat
2023-08-05  7:01 ` Eli Zaretskii
2023-08-05  7:41   ` Karan Ahlawat
     [not found]   ` <77dc7b13-d4a7-4d63-8f03-226cb06449e8@gmail.com>
2023-08-05  7:51     ` Eli Zaretskii
2023-08-05  8:08       ` Karan Ahlawat
2023-08-05  8:19         ` Eli Zaretskii
2023-08-05  8:43           ` Karan Ahlawat
2023-08-05  9:30             ` Eli Zaretskii
2023-08-05 10:41 ` Yuri Khan
2023-08-05 11:52   ` Karan Ahlawat

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.