|
From: <no...@so...> - 2001-07-30 07:51:23
|
Bugs item #445152, was opened at 2001-07-27 06:53 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=100588&aid=445152&group_id=588 Category: editor core Group: normal bug >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: paste from register not properly recorded in macro Initial Comment: I wrote a macro to paste something at the start of a line, and then something at the end of the line, but the contents of the registers are not pasted when the macro is run. Looks like the problem is the loop counter + test condition. macro: textArea.goToStartOfWhiteSpace(false); for(int i = 1; i <= 0; i++) { Registers.paste(textArea,'p'); } textArea.goToEndOfWhiteSpace(false); for(int i = 1; i <= 0; i++) { Registers.paste(textArea,'a'); } textArea.goToNextLine(false); ---------------------------------------------------------------------- >Comment By: Slava Pestov (spestov) Date: 2001-07-30 00:51 Message: Logged In: YES user_id=2280 Fixed in 3.2pre7. ---------------------------------------------------------------------- Comment By: ollie rutherfurd (fruhstuck) Date: 2001-07-27 09:50 Message: Logged In: YES user_id=62742 Oops! I didn't mean to write 'wrote' in the initial bug report. I didn't write the macro, I recorded it. This code was generated by the macro recorder, and when I recorded the macro, the text was pasted. So it's not a problem with the playback, but a problem with the recorder. I don't know whether the initial value should be different or the test condition, but each loop should have been entered once. BTW, I'm using 3.2pre6. ---------------------------------------------------------------------- Comment By: John Gellene (jgellene) Date: 2001-07-27 08:54 Message: Logged In: YES user_id=117073 This is not a jEdit bug. Your loops initialize i to be 1 and then test to see if i is less than or equal to zero. The test immediately fails, so the code inside the loops never gets executed. ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=100588&aid=445152&group_id=588 |