halfbrained / cuda_runner

Runner - plugin for CudaText. Adds commands to build/compile files/projects.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

more correct output() for the case of long wrapped lines

Alexey-T opened this issue · comments

def output(strings):
    """ 'strings' - str or list[str]
    """
    cCommand_ScrollToEnd = 259 # cudatext_cmd.py
    
    if not isinstance(strings, list):
        strings = [strings]
    for s in strings:
        app_log(LOG_ADD, s, panel=LOG_PANEL_OUTPUT)

    oed = Command._output_ed
    if option_tail_log and oed:
        oed.cmd(cCommand_ScrollToEnd)

it is - PROP_LAST_LINE_ON_TOP - already set. no need to call set_prop

Right... commands, thanks, I'll keep them in mind