Skip to content

Commit

Permalink
#21 fixed a crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen Bin committed Sep 29, 2024
1 parent ae5eedc commit 351997d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pkg.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
name=wucuo
version=0.3.1
version=0.3.2
pkg=$name-$version
mkdir $pkg
cp *.el $pkg
Expand Down
8 changes: 4 additions & 4 deletions wucuo.el
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

;; Copyright (C) 2018-2023 Chen Bin
;;
;; Version: 0.3.1
;; Version: 0.3.2
;; Keywords: convenience
;; Author: Chen Bin <chenbin DOT sh AT gmail DOT com>
;; URL: http://github.com/redguardtoo/wucuo
Expand Down Expand Up @@ -553,14 +553,14 @@ Returns t to continue checking, nil otherwise."
;;;###autoload
(defun wucuo-version ()
"Output version."
(message "0.3.1"))
(message "0.3.2"))

;;;###autoload
(defun wucuo-spell-check-visible-region ()
"Spell check visible region in current buffer."
(interactive)
(let* ((beg (window-start))
(end (window-end)))
(let* ((beg (max (point-min) (window-start)))
(end (min (point-max) (window-end))))
(when (< (- end beg) wucuo-spell-check-region-max)
(if wucuo-debug (message "wucuo-spell-check-visible-region called from %s to %s; major-mode=%s" beg end major-mode))
;; See https://emacs-china.org/t/flyspell-mode-wucuo-0-2-0/13274/46
Expand Down

0 comments on commit 351997d

Please sign in to comment.