Cudatext: dark pixels in the right-top corner of the micromap

Created on 3 Aug 2021  路  4Comments  路  Source: Alexey-T/CudaText

pi

bug plugins

All 4 comments

pi2

So it is the Hilite Occurrences plugin which marks somthing. @halfbrained Maybe a regression in the plg, due to last changes with speedups.. ed.attr() calls..

@halfbrained
I added such 'prints' in Hilite Occur plugin:
above all 2 'ed.attr' calls:

    print('1', xx, yy)
    ed_self.attr(app.MARKERS_ADD_MANY, MARKTAG, xx, yy, nn,
                 color_font=opt.COLOR_FONT_OTHER,
                 color_bg=opt.COLOR_BG_OTHER,
                 color_border=opt.COLOR_BRD_OTHER,
                 border_left=opt.BRD_OTHER,
                 border_right=opt.BRD_OTHER,
                 border_up=opt.BRD_OTHER,
                 border_down=opt.BRD_OTHER,
                 )

    #if opt.CARET_ALLOW and not is_selection:
    print('2', x0, y0)
    ed_self.attr(app.MARKERS_ADD, MARKTAG, x0, y0, nlen,
                 color_font=opt.COLOR_FONT_CURRENT,
                 color_bg=opt.COLOR_BG_CURRENT,
                 color_border=opt.COLOR_BRD_CURRENT,
                 border_left=opt.BRD_CURRENT,
                 border_right=opt.BRD_CURRENT,
                 border_up=opt.BRD_CURRENT,
                 border_down=opt.BRD_CURRENT,
                 )

and got such log
Screenshot from 2021-08-03 23-44-44

This is start of Cud with the torrent.cpp file (from libtorrent Github repo).

cuda_hilite_occurrences.json

{
    "caret_allow": false,
    "lexers_disabled": "",

    "sel_whole_words": true,

    "visible_fallback": true,
    "sel_words_only": true,
}

There were a bunch of zero length attrs added when "caret_allow": false,, fixed it - https://github.com/CudaText-addons/cuda_hilite_occurrences/pull/10

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Alexey-T picture Alexey-T  路  7Comments

JairoMartinezA picture JairoMartinezA  路  5Comments

JairoMartinezA picture JairoMartinezA  路  5Comments

Alexey-T picture Alexey-T  路  5Comments

Alexey-T picture Alexey-T  路  4Comments