File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
name=wucuo
3
- version=0.3.1
3
+ version=0.3.2
4
4
pkg=$name -$version
5
5
mkdir $pkg
6
6
cp * .el $pkg
Original file line number Diff line number Diff line change 2
2
3
3
; ; Copyright (C) 2018-2023 Chen Bin
4
4
; ;
5
- ; ; Version: 0.3.1
5
+ ; ; Version: 0.3.2
6
6
; ; Keywords: convenience
7
7
; ; Author: Chen Bin <chenbin DOT sh AT gmail DOT com>
8
8
; ; URL: https://github.com/redguardtoo/wucuo
@@ -553,14 +553,14 @@ Returns t to continue checking, nil otherwise."
553
553
;;;### autoload
554
554
(defun wucuo-version ()
555
555
" Output version."
556
- (message " 0.3.1 " ))
556
+ (message " 0.3.2 " ))
557
557
558
558
;;;### autoload
559
559
(defun wucuo-spell-check-visible-region ()
560
560
" Spell check visible region in current buffer."
561
561
(interactive )
562
- (let* ((beg (window-start ))
563
- (end (window-end )))
562
+ (let* ((beg (max ( point-min ) ( window-start ) ))
563
+ (end (min ( point-max ) ( window-end ) )))
564
564
(when (< (- end beg) wucuo-spell-check-region-max)
565
565
(if wucuo-debug (message " wucuo-spell-check-visible-region called from %s to %s ; major-mode=%s " beg end major-mode))
566
566
; ; See https://emacs-china.org/t/flyspell-mode-wucuo-0-2-0/13274/46
You can’t perform that action at this time.
0 commit comments