[Github-comments] [geany-plugins] Add new "Lineoperations" plugin (#324)

Colomban Wendling notifications at xxxxx
Sun Jan 10 02:34:50 UTC 2016


> +			else if(linelen != 1)
> +			{
> +				line = sci_get_line(doc->editor->sci, i);
> +
> +				if(!iswhitespaceline(line))
> +					// copy current line into *newfile
> +					for(j = 0; line[j] != '\0'; j++)
> +						newfile[nfposn++] = line[j];
> +			}
> +
> +		}
> +		newfile[nfposn] = '\0';
> +		sci_set_text(doc->editor->sci, newfile);	// set new document
> +
> +		g_free(newfile);
> +	}

ditto, but using `sci_get_line_indent_position()`

---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/pull/324/files#r49270786
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160109/12d88ca9/attachment.html>


More information about the Github-comments mailing list