mirror of
https://github.com/tmux/tmux.git
synced 2024-11-06 02:48:49 +00:00
Merge branch 'obsd-master'
This commit is contained in:
commit
759953cb8d
@ -19,6 +19,7 @@
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include "tmux.h"
|
#include "tmux.h"
|
||||||
|
|
||||||
@ -50,6 +51,9 @@ cmd_rename_session_exec(struct cmd *self, struct cmdq_item *item)
|
|||||||
const char *newname;
|
const char *newname;
|
||||||
|
|
||||||
newname = args->argv[0];
|
newname = args->argv[0];
|
||||||
|
if (strcmp(newname, s->name) == 0)
|
||||||
|
return (CMD_RETURN_NORMAL);
|
||||||
|
|
||||||
if (!session_check_name(newname)) {
|
if (!session_check_name(newname)) {
|
||||||
cmdq_error(item, "bad session name: %s", newname);
|
cmdq_error(item, "bad session name: %s", newname);
|
||||||
return (CMD_RETURN_ERROR);
|
return (CMD_RETURN_ERROR);
|
||||||
|
8
tty.c
8
tty.c
@ -1004,7 +1004,7 @@ tty_cmd_linefeed(struct tty *tty, const struct tty_ctx *ctx)
|
|||||||
* off the edge - if so, move the cursor back to the right.
|
* off the edge - if so, move the cursor back to the right.
|
||||||
*/
|
*/
|
||||||
if (ctx->xoff + ctx->ocx > tty->rright)
|
if (ctx->xoff + ctx->ocx > tty->rright)
|
||||||
tty_cursor(tty, tty->rright, ctx->yoff + ctx->ocy);
|
tty_cursor(tty, tty->rright, tty->rlower);
|
||||||
else
|
else
|
||||||
tty_cursor_pane(tty, ctx, ctx->ocx, ctx->ocy);
|
tty_cursor_pane(tty, ctx, ctx->ocx, ctx->ocy);
|
||||||
|
|
||||||
@ -1134,8 +1134,12 @@ tty_cmd_cell(struct tty *tty, const struct tty_ctx *ctx)
|
|||||||
struct screen *s = wp->screen;
|
struct screen *s = wp->screen;
|
||||||
u_int cx, width;
|
u_int cx, width;
|
||||||
|
|
||||||
if (ctx->ocy == ctx->orlower)
|
if (ctx->xoff + ctx->ocx > tty->sx - 1 &&
|
||||||
|
ctx->yoff + ctx->ocy == ctx->orlower &&
|
||||||
|
tty_pane_full_width(tty, ctx))
|
||||||
tty_region_pane(tty, ctx, ctx->orupper, ctx->orlower);
|
tty_region_pane(tty, ctx, ctx->orupper, ctx->orlower);
|
||||||
|
else
|
||||||
|
tty_region_off(tty);
|
||||||
tty_margin_off(tty);
|
tty_margin_off(tty);
|
||||||
|
|
||||||
/* Is the cursor in the very last position? */
|
/* Is the cursor in the very last position? */
|
||||||
|
Loading…
Reference in New Issue
Block a user