Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Comment: | Avoid getting stuck in a loop when moving items
I have a habit of hitting m instead of M and then getting stuck in a So instead of running it in a loop, just run it once on keypress - it's |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/tweaks | trunk |
Files: | files | file ages | folders |
SHA3-256: |
84a89d1e8e9c0105121a87e7d631dcbb |
User & Date: | base@atomicules.co.uk 2014-05-13 20:40:55 |
2014-05-15
| ||
22:23 | Merge branch 'manualheaven' into tweaks Leaf check-in: 91957153ef user: base@atomicules.co.uk tags: origin/tweaks, trunk | |
2014-05-13
| ||
20:40 |
Avoid getting stuck in a loop when moving items
I have a habit of hitting m instead of M and then getting stuck in a So instead of running it in a loop, just run it once on keypress - it's | |
2014-01-06
| ||
11:10 |
Work-around for segfault & data corruption when secring is not available
A couple of things here: 1) I probably use PWMan in a way that wasn't intended: I only make my 2) It seems that for reasons I don't have the inclination or ability to So as a workaround (for my usage circumstances), this fix checks whether This isn't perfect as it only waits once. I.e. if it recognises the | |
Changes to src/actions.c.
︙ | ︙ | |||
515 516 517 518 519 520 521 522 523 524 525 526 | action_list_move_item() { Pw* curpw; PWList *curpwl, *iter; int i; char str[STRING_LONG]; char answer[STRING_MEDIUM]; switch(uilist_get_highlighted_type()){ case PW_ITEM: curpw = uilist_get_highlighted_item(); if(curpw){ | > | | | | < < < < < | | | | | < > | | > > > | | | | < < < < < < < < | | | | | < > | | > > > | 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 | action_list_move_item() { Pw* curpw; PWList *curpwl, *iter; int i; char str[STRING_LONG]; char answer[STRING_MEDIUM]; int sublistfound; switch(uilist_get_highlighted_type()){ case PW_ITEM: curpw = uilist_get_highlighted_item(); if(curpw){ sublistfound = 0; snprintf(str, STRING_LONG, "Move \"%s\" to where?", curpw->name); ui_statusline_ask_str(str, answer, STRING_MEDIUM); for(iter = current_pw_sublist->sublists; iter != NULL; iter = iter->next){ if( strcmp(iter->name, answer) == 0 ){ pwlist_detach_pw(current_pw_sublist, curpw); pwlist_add_ptr(iter, curpw); uilist_refresh(); sublistfound = 1; } } /* then only do this if not found */ if ( sublistfound == 0 ){ ui_statusline_msg("Sublist does not exist, try again"); getch(); ui_statusline_clear(); } } break; case PW_SUBLIST: curpwl = uilist_get_highlighted_sublist(); if(curpwl){ sublistfound = 0; snprintf(str, STRING_LONG, "Move sublist \"%s\" to where?", curpwl->name); ui_statusline_ask_str(str, answer, STRING_MEDIUM); for(iter = current_pw_sublist->sublists; iter != NULL; iter = iter->next){ if( strcmp(iter->name, answer) == 0 ){ pwlist_detach_sublist(current_pw_sublist, curpwl); pwlist_add_sublist(iter, curpwl); uilist_refresh(); sublistfound = 1; } } /* then only do this if not found */ if ( sublistfound == 0 ){ ui_statusline_msg("Sublist does not exist, try again"); getch(); ui_statusline_clear(); } } break; case PW_UPLEVEL: case PW_NULL: default: /* do nothing */ |
︙ | ︙ |