imagej / imagej-legacy

ImageJ+ImageJ2 compatibility layer
https://imagej.net/libs/imagej-legacy
BSD 2-Clause "Simplified" License
16 stars 25 forks source link

Autocompleting IJ1 macros built-in functions adds a new line character after completion #232

Open ndefrancesco opened 4 years ago

ndefrancesco commented 4 years ago

When autocompleting some IJ1 built-in functions (and related), the completed text comes with a trailing new line character, effectively making the cursor to jump to the next line after insertion.

This behaviour only appears with (a fair amount of) entries that are parsed from functions.html and functions_extd.html.

This issue was reported by Nuno Pimpão Martins (thanks!), and is discussed in this forum topic: Auto-completion introduces new line/carriage return on item select.