Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix linum format string width #3

Merged
merged 1 commit into from May 8, 2017
Merged

Conversation

twlz0ne
Copy link

@twlz0ne twlz0ne commented May 5, 2017

`string-width' returns the wrong value:

(string-width "\u2502") ;; => 2
(length       "\u2502") ;; => 1

It causes the following error:

1 Debugger entered--Lisp error: (args-out-of-range 0 6)
2   add-text-properties(0 6 (face linum-highlight-face) #("   1│" 0 5 (face linum)))
3   hlinum-color(linum-highlight-face nil)
4   hlinum-highlight-line()
5   apply(hlinum-highlight-line nil)
6   linum-update-current()

`string-width' returns the wrong value:

    (string-width "\u2502") ;; => 2
    (length       "\u2502") ;; => 1

It causes the following error:

    1 Debugger entered--Lisp error: (args-out-of-range 0 6)
    2   add-text-properties(0 6 (face linum-highlight-face) #("   1│" 0 5 (face linum)))
    3   hlinum-color(linum-highlight-face nil)
    4   hlinum-highlight-line()
    5   apply(hlinum-highlight-line nil)
    6   linum-update-current()
@tom-tan tom-tan merged commit 2b4a08d into tom-tan:master May 8, 2017
@tom-tan
Copy link
Owner

tom-tan commented May 8, 2017

Thanks!

@tom-tan tom-tan self-assigned this May 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants