[Github-comments] [geany/geany-plugins] Automark: Don't try to get some selection if line is empty (#514)

Frank Lanitz notifications at xxxxx
Wed Jan 4 19:49:58 UTC 2017


This PR should remove warnings like 

`(geany:7479): Geany-CRITICAL **: sci_get_contents_range: assertion 'start < end' failed`

Backtrace befre:

```
Thread 1 "geany" hit Breakpoint 1, handler_log (domain=0x7ffff7b64da2 "Geany", level=G_LOG_LEVEL_CRITICAL, 
    msg=0x55555651f800 "sci_get_contents_range: assertion 'start < end' failed", data=0x0) at log.c:121
121	{
(gdb) bt
#0  handler_log (domain=0x7ffff7b64da2 "Geany", level=G_LOG_LEVEL_CRITICAL, 
    msg=0x55555651f800 "sci_get_contents_range: assertion 'start < end' failed", data=0x0) at log.c:121
#1  0x00007ffff52bd5c4 in g_logv () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff52bd7cf in g_log () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff79bf94b in sci_get_contents_range (sci=sci at entry=0x555556373520, start=start at entry=11519, end=<optimized out>)
    at sciwrappers.c:990
#4  0x00007fffe5db8da8 in get_current_word (sci=0x555556373520) at automark.c:92
#5  automark (user_data=<optimized out>) at automark.c:117
#6  0x00007ffff52b66aa in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007ffff52b6a60 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x00007ffff52b6d82 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9  0x00007ffff7251cc5 in gtk_main () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#10 0x00007ffff79ad097 in main_lib (argc=<optimized out>, argv=<optimized out>) at libmain.c:1233
#11 0x00007ffff4cd12b1 in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#12 0x000055555555478a in _start ()
(gdb) r

```
You can view, comment on, or merge this pull request online at:

  https://github.com/geany/geany-plugins/pull/514

-- Commit Summary --

  * Automark: Don't try to get some selection if line is empty

-- File Changes --

    M automark/src/automark.c (3)

-- Patch Links --

https://github.com/geany/geany-plugins/pull/514.patch
https://github.com/geany/geany-plugins/pull/514.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/pull/514
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20170104/5164252f/attachment.html>


More information about the Github-comments mailing list