alphapapa / alphapapa/snow.el

Errors if window width is less than background width.

Ouverte
#1 7 commentaires 0 réactions 1 personne assignée Réclamée par @alphapapa Voir sur GitHub
bug
Langage dominant
Emacs Lisp
Étoiles
86
Forks
5
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

If the width of the Emacs frame is less than the width of the background image, one soft error and one hard error will occur:

- The background overwrites the buffer's newlines, widening the buffer in the background lines.
- Toward the end of the background write it will eventually attempt to `setf` past `(point-max)`, throwing an error.

I would suggest restricting the background line width (e.g. via the `setf` range) to the lesser of the background image line length or the buffer width (using the same logic for the buffer width as elsewhere in snow.el).

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.