On May 17, 2005, at 2:56 PM, Allan Odgaard wrote:
how can I test for whether my cursor is between
empty curly braces?
prev_ch=${TM_CURRENT_LINE:$TM_COLUMN_NUMBER-2:1}
if [[ $prev_ch == '{' ]]; then
echo -n in bracket
fi
Cool! Works like a charm. I guess I should have thought of checking
the cursor location instead of the current word. :-)
Thanks,
Haris